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

red team Dockerfile update for drupal:8.5.0 resolved 404 error while running apt-get update #141

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
9 changes: 9 additions & 0 deletions redblueapp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
FROM drupal:8.5.0

# Use sed to remove the specified lines from sources.list as these deb.debian.org returning 404 error
RUN sed -i '/deb http:\/\/deb.debian.org\/debian stretch main/d' /etc/apt/sources.list
RUN sed -i '/deb http:\/\/deb.debian.org\/debian stretch-updates main/d' /etc/apt/sources.list
RUN sed -i '/deb http:\/\/security.debian.org stretch\/updates main/d' /etc/apt/sources.list

# Use echo to append the repository lines to the sources.list file to fetch the packages from archive
RUN echo "deb http://archive.debian.org/debian/ stretch main" >> /etc/apt/sources.list
RUN echo "deb http://archive.debian.org/debian-security/ stretch/updates main" >> /etc/apt/sources.list

RUN apt-get update
RUN apt-get -y install supervisor
RUN apt-get -y install iputils-ping
Expand Down
4 changes: 3 additions & 1 deletion redblueapp/buildAndRun.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
docker build -t securecodingdojo/redblueapp .
docker run -p 8888:8888 -p 8080:80 -e MASTER_SALT="$CHALLENGE_MASTER_SALT" securecodingdojo/redblueapp
CHALLENGE_MASTER_SALT=$(openssl rand -hex 16)
echo $CHALLENGE_MASTER_SALT
docker run -p 8888:8888 -p 8080:80 -e MASTER_SALT="$CHALLENGE_MASTER_SALT" securecodingdojo/redblueapp