File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ RUN --mount=type=ssh apt-get update && apt-get install -y \
118
118
# Do whatever else you need to
119
119
# Map the special names to docker host internal ip because 127.0.0.1 is *container* localhost on login
120
120
&& echo "sed 's/.*localmaeher.*//g' /etc/hosts >/etc/hosts.new && cat /etc/hosts.new >/etc/hosts" >>/root/.profile \
121
- && echo "echo \"\$ (getent hosts host.docker.internal | awk '{ print $1 }') localmaeher.pvarki.fi mtls.localmaeher.pvarki.fi\" >>/etc/hosts" >>/root/.profile \
121
+ && echo "echo \"\$ (getent hosts host.docker.internal | awk '{ print $1 }') localmaeher.dev. pvarki.fi mtls.localmaeher.dev .pvarki.fi\" >>/etc/hosts" >>/root/.profile \
122
122
&& true
123
123
ENTRYPOINT ["/usr/bin/tini" , "--" , "/docker-entrypoint.sh" ]
124
124
@@ -163,7 +163,7 @@ RUN apt-get update && apt-get install -y zsh \
163
163
&& pip3 install git-up \
164
164
# Map the special names to docker host internal ip because 127.0.0.1 is *container* localhost on login
165
165
&& echo "sed 's/.*localmaeher.*//g' /etc/hosts >/etc/hosts.new && cat /etc/hosts.new >/etc/hosts" >>/root/.profile \
166
- && echo "echo \"\$ (getent hosts host.docker.internal | awk '{ print $1 }') localmaeher.pvarki.fi mtls.localmaeher.pvarki.fi\" >>/etc/hosts" >>/root/.profile \
166
+ && echo "echo \"\$ (getent hosts host.docker.internal | awk '{ print $1 }') localmaeher.dev. pvarki.fi mtls.localmaeher.dev .pvarki.fi\" >>/etc/hosts" >>/root/.profile \
167
167
&& ln -s /app/docker/container-init.sh /container-init.sh \
168
168
&& true
169
169
ENTRYPOINT ["/bin/zsh" , "-l" ]
Original file line number Diff line number Diff line change 2
2
set -e
3
3
# Resolve our magic names to docker internal ip
4
4
sed ' s/.*localmaeher.*//g' /etc/hosts > /etc/hosts.new && cat /etc/hosts.new > /etc/hosts
5
- echo " $( getent ahostsv4 host.docker.internal | awk ' { print $1 }' ) localmaeher.pvarki.fi mtls.localmaeher.pvarki.fi" >> /etc/hosts
5
+ echo " $( getent ahostsv4 host.docker.internal | awk ' { print $1 }' ) localmaeher.dev. pvarki.fi mtls.localmaeher.dev .pvarki.fi" >> /etc/hosts
6
6
cat /etc/hosts
7
7
if [ -f /data/persistent/firstrun.done ]
8
8
then
You can’t perform that action at this time.
0 commit comments