Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor updates to docker Makefile and scan job #967

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Build an image from Dockerfile
run: |
docker build -t docker.io/securefederatedai/openfl:${{ github.sha }} -f openfl-docker/Dockerfile.base .
docker build --pull -t docker.io/securefederatedai/openfl:${{ github.sha }} -f openfl-docker/Dockerfile.base .

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
Expand Down
1 change: 1 addition & 0 deletions openfl-docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ RUN apt-get update && \
openssh-server=\* \
curl=\* \
ca-certificates=\* && \
rm -rf /etc/ssh/ssh_host_*_key && \
if [ "$INSTALL_SOURCES" = "yes" ]; then \
dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \
sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \
Expand Down
6 changes: 3 additions & 3 deletions openfl-docker/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build:
@docker build -t openfl -f Dockerfile.base ..
@docker build --pull -t openfl -f Dockerfile.base ..
run:
@docker run -it --network host openfl
@docker run --rm -it --network host openfl
save:
@docker save openfl > openfl.tar
@docker save openfl | gzip > openfl.tar.gz
Loading