Skip to content

Commit 433c076

Browse files
committed
move localmaeher to the dev namespace so we can manage the records
1 parent 33539fb commit 433c076

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ RUN --mount=type=ssh apt-get update && apt-get install -y \
118118
# Do whatever else you need to
119119
# Map the special names to docker host internal ip because 127.0.0.1 is *container* localhost on login
120120
&& 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 \
122122
&& true
123123
ENTRYPOINT ["/usr/bin/tini", "--", "/docker-entrypoint.sh"]
124124

@@ -163,7 +163,7 @@ RUN apt-get update && apt-get install -y zsh \
163163
&& pip3 install git-up \
164164
# Map the special names to docker host internal ip because 127.0.0.1 is *container* localhost on login
165165
&& 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 \
167167
&& ln -s /app/docker/container-init.sh /container-init.sh \
168168
&& true
169169
ENTRYPOINT ["/bin/zsh", "-l"]

docker/container-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33
# Resolve our magic names to docker internal ip
44
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
66
cat /etc/hosts
77
if [ -f /data/persistent/firstrun.done ]
88
then

0 commit comments

Comments
 (0)