Skip to content

Commit

Permalink
chore: docker build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Oct 17, 2023
1 parent 4d934cb commit 06aad36
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- docker-full
- docker-minimal
steps:
- name: Checkout code
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Build Container
run: make docker
run: make ${{matrix.target}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,18 @@ generate: .bin/controller-gen
.bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./api/..."

# Build the docker image
docker:
docker build . -f build/full/Dockerfile -t ${IMG_F}
docker: docker-minimal docker-full

docker-full:
docker build . -f build/full/Dockerfile -t ${IMG}

docker-minimal:
docker build . -f build/minimal/Dockerfile -t ${IMG}

# Build the docker image
docker-dev: linux
docker build ./ -f build/dev/Dockerfile -t ${IMG}


docker-push-%:
docker build . -f build/full/Dockerfile -t ${IMG_F}
docker build . -f build/minimal/Dockerfile -t ${IMG}
Expand Down
6 changes: 3 additions & 3 deletions build/full/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ RUN curl -L https://github.com/restic/restic/releases/download/v${RESTIC_VERSION

ENV JMETER_VERSION=5.6.2
RUN curl -L https://dlcdn.apache.org//jmeter/binaries/apache-jmeter-${JMETER_VERSION}.zip -o apache-jmeter-${JMETER_VERSION}.zip && \
unzip apache-jmeter-${JMETER_VERSION}.zip -q -d /opt && \
unzip -q apache-jmeter-${JMETER_VERSION}.zip -d /opt && \
rm apache-jmeter-${JMETER_VERSION}.zip

ENV PATH /opt/apache-jmeter-${JMETER_VERSION}/bin/:$PATH
Expand All @@ -78,7 +78,7 @@ RUN curl -Lsf https://sh.benthos.dev | bash -s -- 4.22.0

# Commandline tool for running SQL queries against JSON, CSV, Excel, Parquet, and more
RUN curl -L https://github.com/multiprocessio/dsq/releases/download/v0.23.0/dsq-linux-x64-v0.23.0.zip -o dsq.zip && \
unzip dsq.zip -q && \
unzip -q dsq.zip && \
mv dsq /usr/local/bin/dsq && \
rm dsq.zip

Expand All @@ -99,7 +99,7 @@ ENV PATH="${PATH}:/var/lib/canary/bin/"

# Install AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip -q && ./aws/install -i ${HOME}/aws -b ${HOME}/bin/ && \
unzip -q awscliv2.zip && ./aws/install -i ${HOME}/aws -b ${HOME}/bin/ && \
rm awscliv2.zip

# Install GCP CLI
Expand Down
2 changes: 1 addition & 1 deletion build/minimal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ENV PATH="${PATH}:/var/lib/canary/bin/"

# Install AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip -q && ./aws/install -i ${HOME}/aws -b ${HOME}/bin/ && \
unzip -q awscliv2.zip && ./aws/install -i ${HOME}/aws -b ${HOME}/bin/ && \
rm awscliv2.zip

# Install GCP CLI
Expand Down

0 comments on commit 06aad36

Please sign in to comment.