Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df812df
commit 0e3fe3d
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
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 @@ | ||
FROM docker:18.09.6 | ||
|
||
LABEL maintainer="Alexander Litvinenko <array.shift@yahoo.com>" | ||
|
||
ENV APP_NAME dind | ||
ENV APP_INSTALL_PATH /opt/${APP_NAME} | ||
|
||
WORKDIR ${APP_INSTALL_PATH} | ||
|
||
COPY scripts . | ||
|
||
RUN apk add --no-cache iptables bash | ||
|
||
ENTRYPOINT [ "./start.sh" ] |
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,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
NEW_UUID=latest | ||
|
||
docker build -t alekslitvinenk/dind:$NEW_UUID -t alekslitvinenk/dind:latest --no-cache . | ||
docker push alekslitvinenk/dind:$NEW_UUID |
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,10 @@ | ||
#!/bin/bash | ||
|
||
dockerd & | ||
|
||
sleep 2 | ||
|
||
# By some strange reason we need to do echo command to get to the next command | ||
echo " " | ||
|
||
exec bash |