Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #69

Closed
wants to merge 1 commit into from
Closed

test #69

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions 4.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
FROM oryxprod/node-4.4:20190301.2

FROM oryxprod/node-4.4:20190401.5
LABEL maintainer="Azure App Services Container Images <[email protected]>"

RUN echo "deb http://deb.debian.org/debian/ jessie main" > /etc/apt/sources.list \
&& echo "deb-src http://deb.debian.org/debian/ jessie main" >> /etc/apt/sources.list \
&& echo "deb http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb-src http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "deb-src http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf

COPY startup /opt/startup
COPY hostingstart.html /home/site/wwwroot/hostingstart.html

Expand Down
3 changes: 2 additions & 1 deletion 4.4/sshd_config
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Port SSH_PORT
ListenAddress 0.0.0.0
LoginGraceTime 180
X11Forwarding yes
Ciphers aes128-cbc,3des-cbc,aes256-cbc
Ciphers aes128-cbc,3des-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr
MACs hmac-sha1,hmac-sha1-96
StrictModes yes
SyslogFacility DAEMON
PasswordAuthentication yes
PermitEmptyPasswords no
PermitRootLogin yes
Subsystem sftp internal-sftp
25 changes: 24 additions & 1 deletion 4.4/startup/init_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,30 @@ chmod 777 "$PM2HOME"
ln -s /home/LogFiles "$PM2HOME"/logs

# Get environment variables to show up in SSH session
eval $(printenv | awk -F= '{print "export " $1"="$2 }' >> /etc/profile)
eval $(printenv | sed -n "s/^\([^=]\+\)=\(.*\)$/export \1=\2/p" | sed 's/"/\\\"/g' | sed '/=/s//="/' | sed 's/$/"/' >> /etc/profile)

#
# Extract dependencies if required:
#
if [ -f "oryx-manifest.toml" ] && [ ! "$APPSVC_RUN_ZIP" = "TRUE" ] ; then
echo "Found 'oryx-manifest.toml', checking if node_modules was compressed..."
source "oryx-manifest.toml"
if [ ${compressedNodeModulesFile: -4} == ".zip" ]; then
echo "Found zip-based node_modules."
extractionCommand="unzip -q $compressedNodeModulesFile -d /node_modules"
elif [ ${compressedNodeModulesFile: -7} == ".tar.gz" ]; then
echo "Found tar.gz based node_modules."
extractionCommand="tar -xzf $compressedNodeModulesFile -C /node_modules"
fi
if [ ! -z "$extractionCommand" ]; then
echo "Removing existing modules directory..."
rm -fr /node_modules
mkdir -p /node_modules
echo "Extracting modules..."
$extractionCommand
fi
echo "Done."
fi

echo "$@" > /opt/startup/startupCommand
node /opt/startup/generateStartupCommand.js
Expand Down
11 changes: 9 additions & 2 deletions 4.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
FROM oryxprod/node-4.5:20190301.2

FROM oryxprod/node-4.5:20190401.5
LABEL maintainer="Azure App Services Container Images <[email protected]>"

RUN echo "deb http://deb.debian.org/debian/ jessie main" > /etc/apt/sources.list \
&& echo "deb-src http://deb.debian.org/debian/ jessie main" >> /etc/apt/sources.list \
&& echo "deb http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb-src http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "deb-src http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf

COPY startup /opt/startup
COPY hostingstart.html /home/site/wwwroot/hostingstart.html

Expand Down
3 changes: 2 additions & 1 deletion 4.5/sshd_config
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Port SSH_PORT
ListenAddress 0.0.0.0
LoginGraceTime 180
X11Forwarding yes
Ciphers aes128-cbc,3des-cbc,aes256-cbc
Ciphers aes128-cbc,3des-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr
MACs hmac-sha1,hmac-sha1-96
StrictModes yes
SyslogFacility DAEMON
PasswordAuthentication yes
PermitEmptyPasswords no
PermitRootLogin yes
Subsystem sftp internal-sftp
25 changes: 24 additions & 1 deletion 4.5/startup/init_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,30 @@ chmod 777 "$PM2HOME"
ln -s /home/LogFiles "$PM2HOME"/logs

# Get environment variables to show up in SSH session
eval $(printenv | awk -F= '{print "export " $1"="$2 }' >> /etc/profile)
eval $(printenv | sed -n "s/^\([^=]\+\)=\(.*\)$/export \1=\2/p" | sed 's/"/\\\"/g' | sed '/=/s//="/' | sed 's/$/"/' >> /etc/profile)

#
# Extract dependencies if required:
#
if [ -f "oryx-manifest.toml" ] && [ ! "$APPSVC_RUN_ZIP" = "TRUE" ] ; then
echo "Found 'oryx-manifest.toml', checking if node_modules was compressed..."
source "oryx-manifest.toml"
if [ ${compressedNodeModulesFile: -4} == ".zip" ]; then
echo "Found zip-based node_modules."
extractionCommand="unzip -q $compressedNodeModulesFile -d /node_modules"
elif [ ${compressedNodeModulesFile: -7} == ".tar.gz" ]; then
echo "Found tar.gz based node_modules."
extractionCommand="tar -xzf $compressedNodeModulesFile -C /node_modules"
fi
if [ ! -z "$extractionCommand" ]; then
echo "Removing existing modules directory..."
rm -fr /node_modules
mkdir -p /node_modules
echo "Extracting modules..."
$extractionCommand
fi
echo "Done."
fi

echo "$@" > /opt/startup/startupCommand
node /opt/startup/generateStartupCommand.js
Expand Down
11 changes: 9 additions & 2 deletions 4.8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
FROM oryxprod/node-4.8:20190301.2

FROM oryxprod/node-4.8:20190401.5
LABEL maintainer="Azure App Services Container Images <[email protected]>"

RUN echo "deb http://deb.debian.org/debian/ jessie main" > /etc/apt/sources.list \
&& echo "deb-src http://deb.debian.org/debian/ jessie main" >> /etc/apt/sources.list \
&& echo "deb http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb-src http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "deb-src http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf

COPY startup /opt/startup
COPY hostingstart.html /home/site/wwwroot/hostingstart.html

Expand Down
3 changes: 2 additions & 1 deletion 4.8/sshd_config
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Port SSH_PORT
ListenAddress 0.0.0.0
LoginGraceTime 180
X11Forwarding yes
Ciphers aes128-cbc,3des-cbc,aes256-cbc
Ciphers aes128-cbc,3des-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr
MACs hmac-sha1,hmac-sha1-96
StrictModes yes
SyslogFacility DAEMON
PasswordAuthentication yes
PermitEmptyPasswords no
PermitRootLogin yes
Subsystem sftp internal-sftp
25 changes: 24 additions & 1 deletion 4.8/startup/init_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,30 @@ chmod 777 "$PM2HOME"
ln -s /home/LogFiles "$PM2HOME"/logs

# Get environment variables to show up in SSH session
eval $(printenv | awk -F= '{print "export " $1"="$2 }' >> /etc/profile)
eval $(printenv | sed -n "s/^\([^=]\+\)=\(.*\)$/export \1=\2/p" | sed 's/"/\\\"/g' | sed '/=/s//="/' | sed 's/$/"/' >> /etc/profile)

#
# Extract dependencies if required:
#
if [ -f "oryx-manifest.toml" ] && [ ! "$APPSVC_RUN_ZIP" = "TRUE" ] ; then
echo "Found 'oryx-manifest.toml', checking if node_modules was compressed..."
source "oryx-manifest.toml"
if [ ${compressedNodeModulesFile: -4} == ".zip" ]; then
echo "Found zip-based node_modules."
extractionCommand="unzip -q $compressedNodeModulesFile -d /node_modules"
elif [ ${compressedNodeModulesFile: -7} == ".tar.gz" ]; then
echo "Found tar.gz based node_modules."
extractionCommand="tar -xzf $compressedNodeModulesFile -C /node_modules"
fi
if [ ! -z "$extractionCommand" ]; then
echo "Removing existing modules directory..."
rm -fr /node_modules
mkdir -p /node_modules
echo "Extracting modules..."
$extractionCommand
fi
echo "Done."
fi

echo "$@" > /opt/startup/startupCommand
node /opt/startup/generateStartupCommand.js
Expand Down
11 changes: 9 additions & 2 deletions 6.10/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
FROM oryxprod/node-6.10:20190301.2

FROM oryxprod/node-6.10:20190401.5
LABEL maintainer="Azure App Services Container Images <[email protected]>"

RUN echo "deb http://deb.debian.org/debian/ jessie main" > /etc/apt/sources.list \
&& echo "deb-src http://deb.debian.org/debian/ jessie main" >> /etc/apt/sources.list \
&& echo "deb http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb-src http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "deb-src http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf

COPY startup /opt/startup
COPY hostingstart.html /home/site/wwwroot/hostingstart.html

Expand Down
3 changes: 2 additions & 1 deletion 6.10/sshd_config
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Port SSH_PORT
ListenAddress 0.0.0.0
LoginGraceTime 180
X11Forwarding yes
Ciphers aes128-cbc,3des-cbc,aes256-cbc
Ciphers aes128-cbc,3des-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr
MACs hmac-sha1,hmac-sha1-96
StrictModes yes
SyslogFacility DAEMON
PasswordAuthentication yes
PermitEmptyPasswords no
PermitRootLogin yes
Subsystem sftp internal-sftp
25 changes: 24 additions & 1 deletion 6.10/startup/init_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,30 @@ chmod 777 "$PM2HOME"
ln -s /home/LogFiles "$PM2HOME"/logs

# Get environment variables to show up in SSH session
eval $(printenv | awk -F= '{print "export " $1"="$2 }' >> /etc/profile)
eval $(printenv | sed -n "s/^\([^=]\+\)=\(.*\)$/export \1=\2/p" | sed 's/"/\\\"/g' | sed '/=/s//="/' | sed 's/$/"/' >> /etc/profile)

#
# Extract dependencies if required:
#
if [ -f "oryx-manifest.toml" ] && [ ! "$APPSVC_RUN_ZIP" = "TRUE" ] ; then
echo "Found 'oryx-manifest.toml', checking if node_modules was compressed..."
source "oryx-manifest.toml"
if [ ${compressedNodeModulesFile: -4} == ".zip" ]; then
echo "Found zip-based node_modules."
extractionCommand="unzip -q $compressedNodeModulesFile -d /node_modules"
elif [ ${compressedNodeModulesFile: -7} == ".tar.gz" ]; then
echo "Found tar.gz based node_modules."
extractionCommand="tar -xzf $compressedNodeModulesFile -C /node_modules"
fi
if [ ! -z "$extractionCommand" ]; then
echo "Removing existing modules directory..."
rm -fr /node_modules
mkdir -p /node_modules
echo "Extracting modules..."
$extractionCommand
fi
echo "Done."
fi

echo "$@" > /opt/startup/startupCommand
node /opt/startup/generateStartupCommand.js
Expand Down
11 changes: 9 additions & 2 deletions 6.11/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
FROM oryxprod/node-6.11:20190301.2

FROM oryxprod/node-6.11:20190401.5
LABEL maintainer="Azure App Services Container Images <[email protected]>"

RUN echo "deb http://deb.debian.org/debian/ jessie main" > /etc/apt/sources.list \
&& echo "deb-src http://deb.debian.org/debian/ jessie main" >> /etc/apt/sources.list \
&& echo "deb http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb-src http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "deb-src http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf

COPY startup /opt/startup
COPY hostingstart.html /home/site/wwwroot/hostingstart.html

Expand Down
3 changes: 2 additions & 1 deletion 6.11/sshd_config
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Port SSH_PORT
ListenAddress 0.0.0.0
LoginGraceTime 180
X11Forwarding yes
Ciphers aes128-cbc,3des-cbc,aes256-cbc
Ciphers aes128-cbc,3des-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr
MACs hmac-sha1,hmac-sha1-96
StrictModes yes
SyslogFacility DAEMON
PasswordAuthentication yes
PermitEmptyPasswords no
PermitRootLogin yes
Subsystem sftp internal-sftp
25 changes: 24 additions & 1 deletion 6.11/startup/init_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,30 @@ chmod 777 "$PM2HOME"
ln -s /home/LogFiles "$PM2HOME"/logs

# Get environment variables to show up in SSH session
eval $(printenv | awk -F= '{print "export " $1"="$2 }' >> /etc/profile)
eval $(printenv | sed -n "s/^\([^=]\+\)=\(.*\)$/export \1=\2/p" | sed 's/"/\\\"/g' | sed '/=/s//="/' | sed 's/$/"/' >> /etc/profile)

#
# Extract dependencies if required:
#
if [ -f "oryx-manifest.toml" ] && [ ! "$APPSVC_RUN_ZIP" = "TRUE" ] ; then
echo "Found 'oryx-manifest.toml', checking if node_modules was compressed..."
source "oryx-manifest.toml"
if [ ${compressedNodeModulesFile: -4} == ".zip" ]; then
echo "Found zip-based node_modules."
extractionCommand="unzip -q $compressedNodeModulesFile -d /node_modules"
elif [ ${compressedNodeModulesFile: -7} == ".tar.gz" ]; then
echo "Found tar.gz based node_modules."
extractionCommand="tar -xzf $compressedNodeModulesFile -C /node_modules"
fi
if [ ! -z "$extractionCommand" ]; then
echo "Removing existing modules directory..."
rm -fr /node_modules
mkdir -p /node_modules
echo "Extracting modules..."
$extractionCommand
fi
echo "Done."
fi

echo "$@" > /opt/startup/startupCommand
node /opt/startup/generateStartupCommand.js
Expand Down
11 changes: 9 additions & 2 deletions 6.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
FROM oryxprod/node-6.2:20190301.2

FROM oryxprod/node-6.2:20190401.5
LABEL maintainer="Azure App Services Container Images <[email protected]>"

RUN echo "deb http://deb.debian.org/debian/ jessie main" > /etc/apt/sources.list \
&& echo "deb-src http://deb.debian.org/debian/ jessie main" >> /etc/apt/sources.list \
&& echo "deb http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb-src http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "deb-src http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf

COPY startup /opt/startup
COPY hostingstart.html /home/site/wwwroot/hostingstart.html

Expand Down
3 changes: 2 additions & 1 deletion 6.2/sshd_config
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Port SSH_PORT
ListenAddress 0.0.0.0
LoginGraceTime 180
X11Forwarding yes
Ciphers aes128-cbc,3des-cbc,aes256-cbc
Ciphers aes128-cbc,3des-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr
MACs hmac-sha1,hmac-sha1-96
StrictModes yes
SyslogFacility DAEMON
PasswordAuthentication yes
PermitEmptyPasswords no
PermitRootLogin yes
Subsystem sftp internal-sftp
25 changes: 24 additions & 1 deletion 6.2/startup/init_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,30 @@ chmod 777 "$PM2HOME"
ln -s /home/LogFiles "$PM2HOME"/logs

# Get environment variables to show up in SSH session
eval $(printenv | awk -F= '{print "export " $1"="$2 }' >> /etc/profile)
eval $(printenv | sed -n "s/^\([^=]\+\)=\(.*\)$/export \1=\2/p" | sed 's/"/\\\"/g' | sed '/=/s//="/' | sed 's/$/"/' >> /etc/profile)

#
# Extract dependencies if required:
#
if [ -f "oryx-manifest.toml" ] && [ ! "$APPSVC_RUN_ZIP" = "TRUE" ] ; then
echo "Found 'oryx-manifest.toml', checking if node_modules was compressed..."
source "oryx-manifest.toml"
if [ ${compressedNodeModulesFile: -4} == ".zip" ]; then
echo "Found zip-based node_modules."
extractionCommand="unzip -q $compressedNodeModulesFile -d /node_modules"
elif [ ${compressedNodeModulesFile: -7} == ".tar.gz" ]; then
echo "Found tar.gz based node_modules."
extractionCommand="tar -xzf $compressedNodeModulesFile -C /node_modules"
fi
if [ ! -z "$extractionCommand" ]; then
echo "Removing existing modules directory..."
rm -fr /node_modules
mkdir -p /node_modules
echo "Extracting modules..."
$extractionCommand
fi
echo "Done."
fi

echo "$@" > /opt/startup/startupCommand
node /opt/startup/generateStartupCommand.js
Expand Down
11 changes: 9 additions & 2 deletions 6.6/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
FROM oryxprod/node-6.6:20190301.2

FROM oryxprod/node-6.6:20190401.5
LABEL maintainer="Azure App Services Container Images <[email protected]>"

RUN echo "deb http://deb.debian.org/debian/ jessie main" > /etc/apt/sources.list \
&& echo "deb-src http://deb.debian.org/debian/ jessie main" >> /etc/apt/sources.list \
&& echo "deb http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb-src http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list \
&& echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "deb-src http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& echo "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf

COPY startup /opt/startup
COPY hostingstart.html /home/site/wwwroot/hostingstart.html

Expand Down
Loading