From 4d1eacbc1dede9eb388f50a22072fd82c2280a91 Mon Sep 17 00:00:00 2001 From: Thejeswarareddy R Date: Fri, 5 Mar 2021 14:20:26 +0530 Subject: [PATCH 1/6] Create docker-image.yml --- .github/workflows/docker-image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..e57d42a --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,18 @@ +name: Docker Image CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) From 13eeb711ceaab59e88f2280824c19ee32598066e Mon Sep 17 00:00:00 2001 From: Thejeswarareddy R Date: Fri, 5 Mar 2021 14:23:20 +0530 Subject: [PATCH 2/6] Update docker-image.yml --- .github/workflows/docker-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e57d42a..8acebbb 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -15,4 +15,4 @@ jobs: steps: - uses: actions/checkout@v2 - name: Build the Docker image - run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) + run: docker build . --file ubuntu18.04-python3.7.2/Dockerfile --tag my-image-name:$(date +%s) From 4367b8d9d8a033b3193dc26164162d1e6563d2ea Mon Sep 17 00:00:00 2001 From: Thejeswarareddy R Date: Fri, 5 Mar 2021 15:43:13 +0530 Subject: [PATCH 3/6] Update Dockerfile --- ubuntu18.04-python3.7.2/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ubuntu18.04-python3.7.2/Dockerfile b/ubuntu18.04-python3.7.2/Dockerfile index 966476c..d7bfb9c 100644 --- a/ubuntu18.04-python3.7.2/Dockerfile +++ b/ubuntu18.04-python3.7.2/Dockerfile @@ -7,11 +7,11 @@ SHELL ["/bin/bash", "-c"] RUN apt-get update && \ apt-get install -y sudo curl llvm git gcc make openssl libssl-dev libbz2-dev libreadline-dev libncurses5-dev libsqlite3-dev zlib1g-dev libffi-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev liblzma-dev -# add the user Motoko, tribute to https://en.wikipedia.org/wiki/Motoko_Kusanagi -RUN useradd --create-home --no-log-init --system motoko && \ - echo "motoko ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers -USER motoko -WORKDIR /home/motoko +# add the user theja, tribute to https://en.wikipedia.org/wiki/theja0473/ubuntu18.04-python3.7.2 +RUN useradd --create-home --no-log-init --system theja && \ + echo "theja ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers +USER theja +WORKDIR /home/theja # set some local environment variables ENV LANG en_US.UTF-8 From ae88b2673290c72e9c3cc69003145181a11b93bf Mon Sep 17 00:00:00 2001 From: Thejeswarareddy R Date: Fri, 5 Mar 2021 15:52:58 +0530 Subject: [PATCH 4/6] Update Dockerfile --- ubuntu18.04-python3.7.2/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ubuntu18.04-python3.7.2/Dockerfile b/ubuntu18.04-python3.7.2/Dockerfile index d7bfb9c..07565a6 100644 --- a/ubuntu18.04-python3.7.2/Dockerfile +++ b/ubuntu18.04-python3.7.2/Dockerfile @@ -3,6 +3,8 @@ FROM ubuntu:18.04 # use bash shell as default SHELL ["/bin/bash", "-c"] +ENV TZ=asia/kolkata +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # install python, pip and pipenv RUN apt-get update && \ apt-get install -y sudo curl llvm git gcc make openssl libssl-dev libbz2-dev libreadline-dev libncurses5-dev libsqlite3-dev zlib1g-dev libffi-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev liblzma-dev From 8f1ab6a6cb4eb326ca06007e2117f250926f26e7 Mon Sep 17 00:00:00 2001 From: Thejeswarareddy R Date: Fri, 5 Mar 2021 16:00:08 +0530 Subject: [PATCH 5/6] Update Dockerfile --- ubuntu18.04-python3.7.2/Dockerfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ubuntu18.04-python3.7.2/Dockerfile b/ubuntu18.04-python3.7.2/Dockerfile index 07565a6..56d35f9 100644 --- a/ubuntu18.04-python3.7.2/Dockerfile +++ b/ubuntu18.04-python3.7.2/Dockerfile @@ -1,23 +1,26 @@ FROM ubuntu:18.04 +ARG DEBIAN_FRONTEND=noninteractive +ENV DEBIAN_FRONTEND noninteractive + # use bash shell as default SHELL ["/bin/bash", "-c"] -ENV TZ=asia/kolkata -RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone -# install python, pip and pipenv -RUN apt-get update && \ - apt-get install -y sudo curl llvm git gcc make openssl libssl-dev libbz2-dev libreadline-dev libncurses5-dev libsqlite3-dev zlib1g-dev libffi-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev liblzma-dev - # add the user theja, tribute to https://en.wikipedia.org/wiki/theja0473/ubuntu18.04-python3.7.2 RUN useradd --create-home --no-log-init --system theja && \ echo "theja ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers USER theja WORKDIR /home/theja +ENV TZ=asia/kolkata +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # set some local environment variables ENV LANG en_US.UTF-8 +# install python, pip and pipenv +RUN apt-get update && \ + apt-get install -y sudo curl llvm git gcc make openssl wget net-tools libssl-dev libbz2-dev libreadline-dev libncurses5-dev libsqlite3-dev zlib1g-dev libffi-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev liblzma-dev + # install pyenv for motoko RUN curl https://pyenv.run | bash From 19c3023b1d7165c3462e953b3d06a0da30b5072b Mon Sep 17 00:00:00 2001 From: Thejeswarareddy R Date: Fri, 5 Mar 2021 16:01:48 +0530 Subject: [PATCH 6/6] Update Dockerfile --- ubuntu18.04-python3.7.2/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ubuntu18.04-python3.7.2/Dockerfile b/ubuntu18.04-python3.7.2/Dockerfile index 56d35f9..7652fbf 100644 --- a/ubuntu18.04-python3.7.2/Dockerfile +++ b/ubuntu18.04-python3.7.2/Dockerfile @@ -6,12 +6,6 @@ ENV DEBIAN_FRONTEND noninteractive # use bash shell as default SHELL ["/bin/bash", "-c"] -# add the user theja, tribute to https://en.wikipedia.org/wiki/theja0473/ubuntu18.04-python3.7.2 -RUN useradd --create-home --no-log-init --system theja && \ - echo "theja ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers -USER theja -WORKDIR /home/theja - ENV TZ=asia/kolkata RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # set some local environment variables @@ -21,6 +15,13 @@ ENV LANG en_US.UTF-8 RUN apt-get update && \ apt-get install -y sudo curl llvm git gcc make openssl wget net-tools libssl-dev libbz2-dev libreadline-dev libncurses5-dev libsqlite3-dev zlib1g-dev libffi-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev liblzma-dev + +# add the user theja, tribute to https://en.wikipedia.org/wiki/theja0473/ubuntu18.04-python3.7.2 +RUN useradd --create-home --no-log-init --system theja && \ + echo "theja ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers +USER theja +WORKDIR /home/theja + # install pyenv for motoko RUN curl https://pyenv.run | bash