forked from snyk-labs/docker-goof
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add scripts, update for slim, better naming
add 'build.sh' and 'test.sh' utility scripts use 'update' before 'install' in slim images use <purpose>.Dockerfile form for naming
- Loading branch information
Moshe Pontch
committed
Sep 15, 2019
1 parent
99c1c7f
commit b94b9d5
Showing
8 changed files
with
55 additions
and
8 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
pushd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" >/dev/null | ||
|
||
for f in $(ls *Dockerfile); do | ||
base=$(basename ${f}) | ||
flavour=${base%.Dockerfile} | ||
flavour=${flavour%Dockerfile} | ||
tag=docker-goof${flavour:+-$flavour} | ||
file=${flavour:+-f $base} | ||
echo Building ${tag}... | ||
docker build -q -t ${tag} . ${file} | ||
done | ||
|
||
popd >/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM node:6.14.1-slim | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y firewalld beep | ||
RUN apt-get install -y imagemagick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM node:6.14.2-slim | ||
|
||
RUN apt-get update -y | ||
RUN apt-get install -y imagemagick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
FROM node:10.4.0-slim | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y imagemagick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
pushd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" >/dev/null | ||
|
||
for f in $(ls *Dockerfile); do | ||
base=$(basename ${f}) | ||
flavour=${base%.Dockerfile} | ||
flavour=${flavour%Dockerfile} | ||
tag=docker-goof${flavour:+-$flavour} | ||
echo Testing ${tag}... | ||
snyk test --docker ${tag} --file=${base} | ||
done | ||
|
||
popd >/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
FROM wordpress:5 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y imagemagick |