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

Commit d5ccd0d

Browse files
committed
(bugfix) updated SQLITE3 prevent EF7 crash on boilerplate ASPNET sites
1 parent 0a2c45c commit d5ccd0d

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

1.0.0-rc1-update1-coreclr/Dockerfile

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ ENV DNX_USER_HOME /opt/DNX_BRANCH
77
#the smaller base image. So we use this variable to overwrite the default detection.
88
ENV DNX_RUNTIME_ID ubuntu.14.04-x64
99

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/*
10+
# In order to address an issue with running a sqlite3 database on aspnet-docker-linux
11+
# a version of sqlite3 must be installed that is greater than or equal to 3.7.15
12+
# which is not available on the default apt sources list in this image.
13+
# ref: https://github.com/aspnet/EntityFramework/issues/3089
14+
# https://github.com/aspnet/aspnet-docker/issues/121
15+
RUN printf "deb http://ftp.us.debian.org/debian jessie main\n" >> /etc/apt/sources.list
16+
17+
RUN apt-get -qq update && apt-get -qqy install unzip curl libicu-dev libunwind8 gettext libssl-dev libcurl3-gnutls zlib1g sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/*
1118

1219
RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_USER_HOME=$DNX_USER_HOME DNX_BRANCH=v$DNX_VERSION sh
1320
RUN bash -c "source $DNX_USER_HOME/dnvm/dnvm.sh \

1.0.0-rc1-update1/Dockerfile

+10-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ ENV DNX_USER_HOME /opt/dnx
77
#the smaller base image. So we use this variable to overwrite the default detection.
88
ENV DNX_RUNTIME_ID ubuntu.14.04-x64
99

10-
RUN apt-get -qq update && apt-get -qqy install unzip libc6-dev libicu-dev && rm -rf /var/lib/apt/lists/*
10+
# In order to address an issue with running a sqlite3 database on aspnet-docker-linux
11+
# a version of sqlite3 must be installed that is greater than or equal to 3.7.15
12+
# which is not available on the default apt sources list in this image.
13+
# ref: https://github.com/aspnet/EntityFramework/issues/3089
14+
# https://github.com/aspnet/aspnet-docker/issues/121
15+
RUN printf "deb http://ftp.us.debian.org/debian jessie main\n" >> /etc/apt/sources.list
16+
17+
# added sqlite3 & libsqlite3-dev install for use with aspnet-generators (Entity framework)
18+
RUN apt-get -qq update && apt-get -qqy install unzip libc6-dev libicu-dev sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/*
1119

1220
RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_USER_HOME=$DNX_USER_HOME DNX_BRANCH=v$DNX_VERSION sh
1321
RUN bash -c "source $DNX_USER_HOME/dnvm/dnvm.sh \
@@ -32,4 +40,4 @@ RUN LIBUV_VERSION=1.4.2 \
3240
ENV PATH $PATH:$DNX_USER_HOME/runtimes/default/bin
3341

3442
# Prevent `dnu restore` from stalling (gh#63, gh#80)
35-
ENV MONO_THREADS_PER_CPU 50
43+
ENV MONO_THREADS_PER_CPU 50

0 commit comments

Comments
 (0)