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

Commit 8212510

Browse files
committed
Add an rc1-update1 image.
1 parent 60ea90e commit 8212510

File tree

4 files changed

+112
-1
lines changed

4 files changed

+112
-1
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM debian:jessie
2+
3+
ENV DNX_VERSION 1.0.0-rc1-update1
4+
ENV DNX_USER_HOME /opt/DNX_BRANCH
5+
#Currently the CLR packages don't have runtime ids to handle debian:jessie but
6+
#we are making sure that the dependencies are the right versions and are opting for
7+
#the smaller base image. So we use this variable to overwrite the default detection.
8+
ENV DNX_RUNTIME_ID ubuntu.14.04-x64
9+
10+
RUN apt-get -qq update && apt-get -qqy install unzip curl libicu-dev libunwind8 gettext libssl-dev libcurl3-gnutls zlib1g && rm -rf /var/lib/apt/lists/*
11+
12+
RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_USER_HOME=$DNX_USER_HOME DNX_BRANCH=v$DNX_VERSION sh
13+
RUN bash -c "source $DNX_USER_HOME/dnvm/dnvm.sh \
14+
&& dnvm install $DNX_VERSION -alias default -r coreclr \
15+
&& dnvm alias default | xargs -i ln -s $DNX_USER_HOME/runtimes/{} $DNX_USER_HOME/runtimes/default"
16+
17+
# Install libuv for Kestrel from source code (binary is not in wheezy and one in jessie is still too old)
18+
# Combining this with the uninstall and purge will save us the space of the build tools in the image
19+
RUN LIBUV_VERSION=1.4.2 \
20+
&& apt-get -qq update \
21+
&& apt-get -qqy install autoconf automake build-essential libtool \
22+
&& curl -sSL https://github.com/libuv/libuv/archive/v${LIBUV_VERSION}.tar.gz | tar zxfv - -C /usr/local/src \
23+
&& cd /usr/local/src/libuv-$LIBUV_VERSION \
24+
&& sh autogen.sh && ./configure && make && make install \
25+
&& rm -rf /usr/local/src/libuv-$LIBUV_VERSION \
26+
&& ldconfig \
27+
&& apt-get -y purge autoconf automake build-essential libtool \
28+
&& apt-get -y autoremove \
29+
&& apt-get -y clean \
30+
&& rm -rf /var/lib/apt/lists/*
31+
32+
ENV PATH $PATH:$DNX_USER_HOME/runtimes/default/bin

1.0.0-rc1-update1/Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM mono:4.0.1
2+
3+
ENV DNX_VERSION 1.0.0-rc1-update1
4+
ENV DNX_USER_HOME /opt/dnx
5+
#Currently the CLR packages don't have runtime ids to handle debian:jessie but
6+
#we are making sure that the dependencies are the right versions and are opting for
7+
#the smaller base image. So we use this variable to overwrite the default detection.
8+
ENV DNX_RUNTIME_ID ubuntu.14.04-x64
9+
10+
RUN apt-get -qq update && apt-get -qqy install unzip libc6-dev libicu-dev && rm -rf /var/lib/apt/lists/*
11+
12+
RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_USER_HOME=$DNX_USER_HOME DNX_BRANCH=v$DNX_VERSION sh
13+
RUN bash -c "source $DNX_USER_HOME/dnvm/dnvm.sh \
14+
&& dnvm install $DNX_VERSION -alias default \
15+
&& dnvm alias default | xargs -i ln -s $DNX_USER_HOME/runtimes/{} $DNX_USER_HOME/runtimes/default"
16+
17+
# Install libuv for Kestrel from source code (binary is not in wheezy and one in jessie is still too old)
18+
# Combining this with the uninstall and purge will save us the space of the build tools in the image
19+
RUN LIBUV_VERSION=1.4.2 \
20+
&& apt-get -qq update \
21+
&& apt-get -qqy install autoconf automake build-essential libtool \
22+
&& curl -sSL https://github.com/libuv/libuv/archive/v${LIBUV_VERSION}.tar.gz | tar zxfv - -C /usr/local/src \
23+
&& cd /usr/local/src/libuv-$LIBUV_VERSION \
24+
&& sh autogen.sh && ./configure && make && make install \
25+
&& rm -rf /usr/local/src/libuv-$LIBUV_VERSION \
26+
&& ldconfig \
27+
&& apt-get -y purge autoconf automake build-essential libtool \
28+
&& apt-get -y autoremove \
29+
&& apt-get -y clean \
30+
&& rm -rf /var/lib/apt/lists/*
31+
32+
ENV PATH $PATH:$DNX_USER_HOME/runtimes/default/bin
33+
34+
# Prevent `dnu restore` from stalling (gh#63, gh#80)
35+
ENV MONO_THREADS_PER_CPU 50

1.0.0-rc1-update1/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
![](https://avatars3.githubusercontent.com/u/6476660?v=3&s=200)
2+
3+
ASP.NET 5 Preview Docker Image
4+
====================
5+
6+
This repository contains `Dockerfile` definitions for [ASP.NET 5][home] Docker images.
7+
8+
This project is part of ASP.NET 5. You can find samples, documentation, and getting started instructions for ASP.NET 5 at the [Home][home] repo.
9+
10+
[![Build Status of Docker Image on Circle CI](https://img.shields.io/circleci/project/aspnet/aspnet-docker.svg)](https://circleci.com/gh/aspnet/aspnet-docker/tree/master)
11+
[![Downloads from Docker Hub](https://img.shields.io/docker/pulls/microsoft/aspnet.svg)](https://registry.hub.docker.com/u/microsoft/aspnet)
12+
[![Stars on Docker Hub](https://img.shields.io/docker/stars/microsoft/aspnet.svg)](https://registry.hub.docker.com/u/microsoft/aspnet)
13+
14+
## Supported tags
15+
16+
#### `coreclr`-based images
17+
18+
* [`1.0.0-rc1-update1-coreclr` _(1.0.0-rc1-update1-coreclr/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-rc1-update1-coreclr/Dockerfile)
19+
* [`1.0.0-rc1-final-coreclr` _(1.0.0-rc1-final-coreclr/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-rc1-final-coreclr/Dockerfile)
20+
* [`1.0.0-beta8-coreclr` _(1.0.0-beta8-coreclr/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-beta8-coreclr/Dockerfile)
21+
* [`1.0.0-beta7-coreclr` _(1.0.0-beta7-coreclr/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-beta7-coreclr/Dockerfile)
22+
23+
#### `mono`-based images
24+
25+
* [`1.0.0-rc1-update1`, `latest` _(1.0.0-rc1-update1/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-rc1-update1/Dockerfile)
26+
* [`1.0.0-rc1-final`, _(1.0.0-rc1-final/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-rc1-final/Dockerfile)
27+
* [`1.0.0-beta8`, _(1.0.0-beta8/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-beta8/Dockerfile)
28+
* [`1.0.0-beta7`, _(1.0.0-beta7/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-beta7/Dockerfile)
29+
* [`1.0.0-beta6`, _(1.0.0-beta6/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-beta6/Dockerfile)
30+
* [`1.0.0-beta5`, _(1.0.0-beta5/Dockerfile)_](https://github.com/aspnet/aspnet-docker/blob/master/1.0.0-beta5/Dockerfile)
31+
32+
## How to use this image
33+
34+
Please [read this article][webdev-article] on .NET Web Development and Tools Blog to learn more about using this image.
35+
36+
This image provides the following environment variables:
37+
38+
* `DNX_USER_HOME`: path to DNX installation (e.g. /opt/dnx)
39+
* `DNX_VERSION`: version of DNX (.NET Execution Environment) installed
40+
41+
In addition to these, `PATH` is set to include the `dnx`/`dnu` executables.
42+
43+
[home]: https://github.com/aspnet/home
44+
[webdev-article]: http://blogs.msdn.com/b/webdev/archive/2015/01/14/running-asp-net-5-applications-in-linux-containers-with-docker.aspx

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0-rc1-final/README.md
1+
1.0.0-rc1-update1/README.md

0 commit comments

Comments
 (0)