Browse Source

updated pdm-launch to control container timezones

feature/rootless-podman
Mar Alegre 4 years ago
parent
commit
e4584ee1d1
  1. 2
      .install/bin/pdm-launch
  2. 8
      debian/Containerfile

2
.install/bin/pdm-launch

@ -76,5 +76,5 @@ if [[ $opt_force -eq 1 ]]; then
podman rm -i -f "$container"
fi
podman run -itd --name "$container" --hostname "$container" $deployconf "$image"
podman run -itd --tz=local --name "$container" --hostname "$container" $deployconf "$image"
echo "Done!"

8
debian/Containerfile

@ -1,4 +1,3 @@
#FROM debian:stable
FROM docker.io/library/debian:latest
CMD [ "/sbin/init" ]
ENTRYPOINT [ "/sbin/init" ]
@ -15,13 +14,6 @@ ONBUILD SHELL ["/bin/bash", "-c"]
# non-interactively for child images
ONBUILD ENV BASH_ENV=/etc/environment
# We can't use timedatectl because systemd isn't available
# during the build process, so we have to set the timezone manually
ENV TZ=US/Eastern
RUN rm /etc/localtime && \
ln -s /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone
# Install packages
RUN apt update -y && \
apt upgrade -y && \

Loading…
Cancel
Save