File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,20 +2,20 @@ name: Basic Env Docker Build and Publish
22
33on :
44 push :
5- branches : [ "master " ]
5+ branches : [ "docker " ]
66 paths :
77 - " docker/Dockerfile"
88 - " docker/Dockerfile.full"
99 - " .github/workflows/envbase.yaml"
1010 workflow_run :
1111 workflows : [ "envbase" ]
12- branches : [ "master " ]
12+ branches : [ "docker " ]
1313 types : [ "completed" ]
1414
1515env :
1616 REGISTRY : ghcr.io
17- IMAGE_NAME : xs-mlvp/envbase
18- FULL_IMAGE_NAME : xs-mlvp/envfull
17+ IMAGE_NAME : xs-mlvp/envbase_docker
18+ FULL_IMAGE_NAME : xs-mlvp/envfull_docker
1919 IMAGE_TAG : ${{ github.sha }}
2020
2121jobs :
8484 ${{ env.REGISTRY }}/${{ env.FULL_IMAGE_NAME }}:${{ env.IMAGE_TAG }}
8585 ${{ env.REGISTRY }}/${{ env.FULL_IMAGE_NAME }}:latest
8686 cache-from : type=local,src=/tmp/.buildx-cache
87- cache-to : type=local,dest=/tmp/.buildx-cache
87+ cache-to : type=local,dest=/tmp/.buildx-cache
Original file line number Diff line number Diff line change @@ -110,32 +110,4 @@ RUN mkdir /workspace && \
110110 make clean && \
111111 chmod 755 /usr/local/bin -R
112112
113- # set user and password
114- RUN useradd -m -s /bin/bash user && \
115- echo "user:user" | chpasswd && \
116- adduser user sudo && \
117- echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
118- chown user:user -R /workspace && \
119- chmod 755 /workspace
120113
121- # Set SSH autostart
122- RUN mkdir /var/run/sshd && \
123- echo 'root:root' | chpasswd && \
124- sed -i 's|#PermitRootLogin prohibit-password|PermitRootLogin yes|' /etc/ssh/sshd_config && \
125- sed -i 's|#PasswordAuthentication yes|PasswordAuthentication yes|' /etc/ssh/sshd_config && \
126- sed -i 's|#PermitEmptyPasswords no|PermitEmptyPasswords yes|' /etc/ssh/sshd_config && \
127- sed -i 's|#Port 22|Port 51202|' /etc/ssh/sshd_config && \
128- # only listen on localhost
129- sed -i 's|#ListenAddress|ListenAddress 127.0.0.1 #|' /etc/ssh/sshd_config && \
130- ssh-keygen -A
131-
132- # Switch to the new user
133- USER user
134-
135- RUN pip3 install toffee-test filelock && \
136- pip3 install pytoffee==0.2.3
137-
138- # Set the default shell to bash
139- SHELL ["/bin/bash" , "-c" ]
140- # Set working directory
141- WORKDIR /workspace
You can’t perform that action at this time.
0 commit comments