Skip to content
This repository was archived by the owner on May 31, 2019. It is now read-only.

Commit bc61194

Browse files
committed
Merge pull request #84 from jchannon/coreclrbeta7
Add beta7 coreclr dockerfile
2 parents 45f3251 + 7dfc610 commit bc61194

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

.ci/build-app-image.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ BASE_IMAGE=$1
1212
TEST_APP=$2
1313
TAG=$3
1414
VERSION=$4
15-
15+
SAMPLE=$SAMPLES_REPO/samples/${VERSION%-coreclr}/$TEST_APP
1616

1717
echo "[CI] Injecting Dockerfile to project $TEST_APP..."
18-
if [[ ! -d $SAMPLES_REPO/samples/$VERSION/$TEST_APP ]]; then
18+
if [[ ! -d $SAMPLE ]]; then
1919
echo "[CI] Sample '$TEST_APP' not found for Docker image '$VERSION'"
2020
exit 1
2121
fi
22-
cd $SAMPLES_REPO/samples/$VERSION/$TEST_APP
22+
cd $SAMPLE
2323

2424
ls -al
2525

1.0.0-beta7-coreclr/Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM debian:jessie
2+
3+
ENV DNX_VERSION 1.0.0-beta7
4+
ENV DNX_USER_HOME /opt/dnx
5+
6+
RUN apt-get -qq update && apt-get -qqy install unzip curl libunwind8 gettext libssl-dev libcurl3-dev zlib1g
7+
8+
RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_USER_HOME=$DNX_USER_HOME DNX_BRANCH=v$DNX_VERSION sh
9+
RUN bash -c "source $DNX_USER_HOME/dnvm/dnvm.sh \
10+
&& dnvm install $DNX_VERSION -a default -r coreclr \
11+
&& dnvm alias default | xargs -i ln -s $DNX_USER_HOME/runtimes/{} $DNX_USER_HOME/runtimes/default"
12+
13+
14+
# Install libuv for Kestrel from source code (binary is not in wheezy and one in jessie is still too old)
15+
RUN apt-get -qqy install \
16+
autoconf \
17+
automake \
18+
build-essential \
19+
libtool
20+
RUN LIBUV_VERSION=1.4.2 \
21+
&& curl -sSL https://github.com/libuv/libuv/archive/v${LIBUV_VERSION}.tar.gz | tar zxfv - -C /usr/local/src \
22+
&& cd /usr/local/src/libuv-$LIBUV_VERSION \
23+
&& sh autogen.sh && ./configure && make && make install \
24+
&& rm -rf /usr/local/src/libuv-$LIBUV_VERSION \
25+
&& ldconfig
26+
27+
ENV PATH $PATH:$DNX_USER_HOME/runtimes/default/bin

1.0.0-beta7/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This project is part of ASP.NET 5. You can find samples, documentation, and gett
1414
## Supported tags
1515

1616
* [`1.0.0-beta7`, `latest` _(1.0.0-beta7/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-beta7/Dockerfile)
17+
* [`1.0.0-beta7`, `coreclr` _(1.0.0-beta7/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-beta7-coreclr/Dockerfile)
1718
* [`1.0.0-beta6`, _(1.0.0-beta6/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-beta6/Dockerfile)
1819
* [`1.0.0-beta5`, _(1.0.0-beta5/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-beta5/Dockerfile)
1920
* [`1.0.0-beta4`, _(1.0.0-beta4/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-beta4/Dockerfile)

0 commit comments

Comments
 (0)