Skip to content

Commit

Permalink
Update Noble Numbat already has user ubuntu UID=1000
Browse files Browse the repository at this point in the history
  • Loading branch information
thohng committed May 22, 2024
1 parent ac706da commit 8a450d9
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ $mappingVersionArch = @{

'^9\.0(\.\d+)?-preview[^-]*-alpine(.*)$' = '9.0-preview-alpine', '9.0-alpine', '9.0'
'^9\.0(\.\d+)?-preview[^-]*-bookworm-slim$' = '9.0-preview-bookworm-slim', '9.0-preview', '9.0', 'preview-bookworm-slim', 'bookworm-slim'
'^9\.0(\.\d+)?-preview[^-]*-noble$' = '9.0-preview-noble', '9.0-preview', '9.0', 'noble'
'^9\.0(\.\d+)?-preview[^-]*-noble-chiseled$' = '9.0-preview-noble-chiseled', '9.0-preview', '9.0-noble-chiseled', 'noble-chiseled'
'^9\.0(\.\d+)?-preview[^-]*-noble$' = '9.0-preview-noble', '9.0-noble', '9.0-preview', '9.0', 'noble'
'^9\.0(\.\d+)?-preview[^-]*-noble-chiseled$' = '9.0-preview-noble-chiseled', '9.0-noble-chiseled', '9.0-preview', 'noble-chiseled'

'^9\.0(\.\d+)?-rc[^-]*-alpine(.*)$' = '9.0-rc-alpine', '9.0-alpine', '9.0'
'^9\.0(\.\d+)?-rc[^-]*-bookworm-slim$' = '9.0-rc-bookworm-slim', '9.0-rc', '9.0-bookworm-slim', '9.0', 'bookworm-slim'
'^9\.0(\.\d+)?-rc[^-]*-noble$' = '9.0-rc-noble', '9.0-rc', '9.0-noble', '9.0', 'noble'
'^9\.0(\.\d+)?-rc[^-]*-bookworm-slim$' = '9.0-rc-bookworm-slim', '9.0-bookworm-slim', '9.0-rc', '9.0', 'bookworm-slim'
'^9\.0(\.\d+)?-rc[^-]*-noble$' = '9.0-rc-noble', '9.0-noble', '9.0-rc', '9.0', 'noble'
'^9\.0(\.\d+)?-rc[^-]*-noble-chiseled$' = '9.0-rc-noble-chiseled', '9.0-noble-chiseled', 'noble-chiseled'

'^9\.0(\.\d+)?-alpine(.*)$' = '9.0-alpine', '9.0'
Expand Down
20 changes: 20 additions & 0 deletions eng/debian/Dockerfile-8.0-noble
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
ARG IMAGE_TAG=6.0-bullseye-slim
FROM mcr.microsoft.com/dotnet/aspnet:${IMAGE_TAG} AS base

ENV SSH_PORT=2222 \
TZ=UTC \
APPUSER_UID=1000

# Copy files in structure /etc/ssh/sshd_config, /opt/startup/init_container.sh /tmp/ssh_setup.sh
COPY src/ /

# Install OpenSSH and set the password for root to "Docker!". In this example, "apk add" is the install instruction for an Alpine Linux-based image.
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends openssh-server tzdata \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /run/sshd \
&& chmod -R 755 /run/sshd \
&& echo "root:Docker!" | chpasswd \
&& chmod -R +x /opt/startup \
&& (sleep 1;/opt/startup/ssh_setup.sh 2>&1 > /dev/null) \
&& rm -rf /tmp/*
20 changes: 20 additions & 0 deletions eng/debian/Dockerfile-9.0-noble
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
ARG IMAGE_TAG=6.0-bullseye-slim
FROM mcr.microsoft.com/dotnet/aspnet:${IMAGE_TAG} AS base

ENV SSH_PORT=2222 \
TZ=UTC \
APPUSER_UID=1000

# Copy files in structure /etc/ssh/sshd_config, /opt/startup/init_container.sh /tmp/ssh_setup.sh
COPY src/ /

# Install OpenSSH and set the password for root to "Docker!". In this example, "apk add" is the install instruction for an Alpine Linux-based image.
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends openssh-server tzdata \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /run/sshd \
&& chmod -R 755 /run/sshd \
&& echo "root:Docker!" | chpasswd \
&& chmod -R +x /opt/startup \
&& (sleep 1;/opt/startup/ssh_setup.sh 2>&1 > /dev/null) \
&& rm -rf /tmp/*
20 changes: 20 additions & 0 deletions src/debian/Dockerfile-8.0-noble
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
ARG IMAGE_TAG=6.0-bullseye-slim
FROM mcr.microsoft.com/dotnet/aspnet:${IMAGE_TAG} AS base

ENV SSH_PORT=2222 \
TZ=UTC \
APPUSER_UID=1000

# Copy files in structure /etc/ssh/sshd_config, /opt/startup/init_container.sh /tmp/ssh_setup.sh
COPY src/ /

# Install OpenSSH and set the password for root to "Docker!". In this example, "apk add" is the install instruction for an Alpine Linux-based image.
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends openssh-server tzdata \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /run/sshd \
&& chmod -R 755 /run/sshd \
&& echo "root:Docker!" | chpasswd \
&& chmod -R +x /opt/startup \
&& (sleep 1;/opt/startup/ssh_setup.sh 2>&1 > /dev/null) \
&& rm -rf /tmp/*
20 changes: 20 additions & 0 deletions src/debian/Dockerfile-9.0-noble
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
ARG IMAGE_TAG=6.0-bullseye-slim
FROM mcr.microsoft.com/dotnet/aspnet:${IMAGE_TAG} AS base

ENV SSH_PORT=2222 \
TZ=UTC \
APPUSER_UID=1000

# Copy files in structure /etc/ssh/sshd_config, /opt/startup/init_container.sh /tmp/ssh_setup.sh
COPY src/ /

# Install OpenSSH and set the password for root to "Docker!". In this example, "apk add" is the install instruction for an Alpine Linux-based image.
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends openssh-server tzdata \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /run/sshd \
&& chmod -R 755 /run/sshd \
&& echo "root:Docker!" | chpasswd \
&& chmod -R +x /opt/startup \
&& (sleep 1;/opt/startup/ssh_setup.sh 2>&1 > /dev/null) \
&& rm -rf /tmp/*

0 comments on commit 8a450d9

Please sign in to comment.