Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.

Commit 02bf71a

Browse files
committed
Fix stacks for Ubuntu 18.04
1 parent 15ea975 commit 02bf71a

11 files changed

Lines changed: 19 additions & 66 deletions

File tree

recipes/cpp_gcc/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
FROM eclipse/stack-base:ubuntu
1212
ENV CLANGD_VERSION="6.0"
1313
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - && \
14-
sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-${CLANGD_VERSION} main" && \
14+
sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-${CLANGD_VERSION} main" && \
1515
sudo apt-get update && \
1616
sudo apt-get install g++ gcc make gdb gdbserver clang-tools-${CLANGD_VERSION} -y && \
1717
sudo apt-get clean && \

recipes/dotnet_core/Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ FROM eclipse/stack-base:ubuntu
1212
ENV OMISHARP_VERSION="1.31.1"
1313
ENV OMNISHARP_DOWNLOAD_URL="https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v${OMISHARP_VERSION}/omnisharp-linux-x64.tar.gz"
1414
ENV CSHARP_LS_DIR=${HOME}/che/ls-csharp
15-
RUN sudo apt-get update && sudo apt-get install apt-transport-https -y && \
16-
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > ~/microsoft.gpg && \
17-
sudo mv ~/microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg && \
18-
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list' && \
19-
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
15+
RUN sudo apt-get update && \
16+
sudo apt-key adv --keyserver packages.microsoft.com --recv-keys EB3E94ADBE1229CF && \
17+
sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 && \
18+
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic main" > /etc/apt/sources.list.d/dotnetdev.list' && \
2019
sudo apt-get update && \
2120
sudo apt-get install -y \
22-
dotnet-sdk-2.0.0 && \
21+
dotnet-sdk-2.1.105 && \
2322
sudo apt-get -y clean && \
2423
sudo rm -rf /var/lib/apt/lists/* && \
2524
mkdir -p ${CSHARP_LS_DIR}

recipes/php/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ENV CHE_MYSQL_DB=che_db
1616
ENV CHE_MYSQL_USER=che
1717
ENV PHP_LS_VERSION=5.4.1
1818
# install php with a set of most widely used extensions
19-
RUN sudo DEBIAN_FRONTEND=noninteractive apt-get update && \
19+
RUN sudo apt-get update && \
2020
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
2121
apache2 \
2222
php \

recipes/platformio/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
FROM eclipse/ubuntu_python:2.7
2-
RUN sudo apt-get update && sudo apt-get -y install python-pip
32
RUN sudo pip install -U PlatformIO

recipes/ruby_rails/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ RUN set -ex \
3232
ruby \
3333
' \
3434
&& sudo apt-get update \
35-
&& sudo apt-get install -y --no-install-recommends make gcc zlib1g-dev autoconf build-essential libssl-dev libsqlite3-dev $buildDeps tzdata \
35+
&& sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends make gcc zlib1g-dev autoconf build-essential libssl-dev libsqlite3-dev $buildDeps tzdata \
3636
&& sudo rm -rf /var/lib/apt/lists/* \
3737
&& sudo curl -fSL -o ruby.tar.xz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.xz" \
3838
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum -c - \

recipes/selenium/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/so
2626
USER user
2727

2828
RUN sudo apt-get update -qqy && \
29-
sudo apt-get -qqy install \
29+
sudo DEBIAN_FRONTEND=noninteractive apt-get -qqy install \
3030
google-chrome-stable \
3131
supervisor \
3232
x11vnc \

recipes/ubuntu_go/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | sudo bash - && \
66
libc6-dev \
77
make \
88
nodejs \
9+
npm \
910
&& sudo rm -rf /var/lib/apt/lists/*
1011
ENV GOLANG_VERSION 1.10.2
1112
ENV GOLANG_LS_VERSION="0.1.7"
@@ -34,7 +35,7 @@ RUN sudo curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \
3435
go get -v github.com/zmb3/gogetdoc && \
3536
go get -v golang.org/x/tools/cmd/goimports && \
3637
go get -v sourcegraph.com/sqs/goreturns && \
37-
go get -v github.com/golang/lint/golint && \
38+
go get -v golang.org/x/lint/golint && \
3839
go get -v github.com/cweill/gotests/... && \
3940
go get -v github.com/alecthomas/gometalinter && \
4041
go get -v honnef.co/go/tools/... && \

recipes/ubuntu_python/2.7/Dockerfile

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,8 @@
1010

1111
FROM eclipse/stack-base:ubuntu
1212

13-
# remove several traces of debian python
14-
RUN sudo apt-get purge -y python.* && \
15-
sudo apt-get update && \
16-
sudo apt-get install -y gcc make python-pip zlibc zlib1g zlib1g-dev libssl-dev
17-
18-
# http://bugs.python.org/issue19846
19-
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
20-
ENV LANG C.UTF-8
21-
22-
# gpg: key 18ADD4FF: public key "Benjamin Peterson <benjamin@python.org>" imported
23-
ENV GPG_KEY C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
24-
25-
ENV PYTHON_VERSION 2.7.11
26-
27-
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
28-
ENV PYTHON_PIP_VERSION 9.0.1
29-
30-
RUN set -ex \
31-
&& sudo curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
32-
&& sudo curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
33-
&& export GNUPGHOME="$(mktemp -d)" \
34-
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
35-
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
36-
&& sudo rm -r "$GNUPGHOME" python.tar.xz.asc \
37-
&& sudo mkdir -p /usr/src/python \
38-
&& sudo tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
39-
&& sudo rm python.tar.xz \
40-
\
41-
&& cd /usr/src/python \
42-
&& sudo ./configure --enable-shared --enable-unicode=ucs4 \
43-
&& sudo make -j$(nproc) \
44-
&& sudo make install \
45-
&& sudo ldconfig \
46-
&& sudo curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | sudo python2 \
47-
&& sudo pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
48-
&& sudo find /usr/local \
49-
\( -type d -a -name test -o -name tests \) \
50-
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
51-
-exec rm -rf '{}' + \
52-
&& sudo rm -rf /usr/src/python
53-
54-
# install "virtualenv", since the vast majority of users of this image will want it
13+
RUN sudo apt-get update && \
14+
sudo apt-get install -y gcc make zlibc zlib1g zlib1g-dev libssl-dev && \
15+
sudo apt-get install -y python python-pip
5516
RUN sudo pip install --no-cache-dir virtualenv
5617
EXPOSE 8080

recipes/ubuntu_python/Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ RUN sudo apt-get purge -y python.* && sudo apt-get update && sudo apt-get in
1111
libc6-dev \
1212
libcurl4-openssl-dev libdb-dev libevent-dev libffi-dev libgdbm-dev libgeoip-dev libglib2.0-dev libjpeg-dev \
1313
libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev libmysqlclient-dev libncurses-dev libpng-dev \
14-
libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev make patch xz-utils zlib1g-dev
15-
ENV LANG=C.UTF-8
16-
ENV GPG_KEY=97FC712E4C024BBEA48A61ED3A5CA953F73C700D
17-
ENV PYTHON_VERSION=3.5.1
18-
ENV PYTHON_PIP_VERSION=9.0.1
19-
RUN set -ex && sudo curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz && sudo curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc && export GNUPGHOME="$(mktemp -d)" && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" && gpg --batch --verify python.tar.xz.asc python.tar.xz && sudo rm -r "$GNUPGHOME" python.tar.xz.asc && sudo mkdir -p /usr/src/python && sudo tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz && sudo rm python.tar.xz && cd /usr/src/python && sudo ./configure --enable-shared --enable-unicode=ucs4 && sudo make -j$(nproc) && sudo make install && sudo ldconfig && sudo pip3 install --upgrade --ignore-installed pip==$PYTHON_PIP_VERSION && sudo find /usr/local \( -type d -a -name test -o -name tests \) -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' + && sudo rm -rf /usr/src/python
20-
RUN cd /usr/local/bin && sudo ln -s easy_install-3.5 easy_install && sudo ln -s idle3 idle && sudo ln -s pydoc3 pydoc && sudo ln -s python3 python && sudo ln -s python-config3 python-config
14+
libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev make patch xz-utils zlib1g-dev && \
15+
sudo apt-get install -y python3 python3-pip
16+
RUN cd /usr/bin && sudo ln -s python3 python && sudo ln -s pip3 pip
2117
RUN sudo pip install --upgrade pip && \
2218
sudo pip install --no-cache-dir virtualenv && \
2319
sudo pip install --upgrade setuptools && \

recipes/ubuntu_rlang/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ FROM eclipse/stack-base:ubuntu
1111

1212
RUN sudo apt-get update && \
1313
sudo apt-get -y install apt-transport-https build-essential libkrb5-dev gcc make debian-keyring python2.7 && \
14-
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 && \
15-
sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/' && \
16-
sudo apt-get update && \
17-
sudo apt-get install -y r-base
14+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y r-base
1815

1916
EXPOSE 1337 3000 4200 5000 9000 8003
2017
LABEL che:server:8003:ref=angular che:server:8003:protocol=http che:server:3000:ref=node-3000 che:server:3000:protocol=http che:server:9000:ref=node-9000 che:server:9000:protocol=http

0 commit comments

Comments
 (0)