Skip to content

Commit

Permalink
Simplify Dockerfile RUN command
Browse files Browse the repository at this point in the history
The upstream GitPython repository merged a change that set the
executable bit on `container-environment-bootstrap.sh` in Git, so the
`chmod` is no longer needed and the `RUN` instruction can execute the
script directly.

See:
- gitpython-developers/GitPython#1903
- gitpython-developers/GitPython@b0a5b8e
  • Loading branch information
DaveLak committed Apr 18, 2024
1 parent ade3234 commit 94466ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions projects/gitpython/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM gcr.io/oss-fuzz-base/base-builder-python
RUN git clone https://github.com/gitpython-developers/gitpython gitpython;
RUN chmod +x $SRC/gitpython/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh && \
$SRC/gitpython/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh;
RUN git clone https://github.com/gitpython-developers/gitpython gitpython
RUN $SRC/gitpython/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh

COPY *.sh $SRC/
WORKDIR $SRC/gitpython

0 comments on commit 94466ee

Please sign in to comment.