Update GoLand CentOS and Unbuntu images

This commit is contained in:
Chris Decelles 2020-08-04 07:16:40 -04:00
parent 00e455dedb
commit ce16ad46f4
2 changed files with 35 additions and 7 deletions

View File

@ -1,7 +1,14 @@
FROM centos:8
RUN yum update -y && yum install -y \
which \
git \
bash \
curl \
man \
vim \
sudo \
gnupg \
# The following libraries are required for the IDE to be able to communicate with
# code-server through xserver messaging.
openssl \
@ -9,11 +16,17 @@ RUN yum update -y && yum install -y \
libXrender \
fontconfig \
libXi \
gtk3
gtk3 \
libGL
# Install goland.
RUN mkdir -p /opt/goland
RUN curl -L https://download.jetbrains.com/go/goland-2019.3.3.tar.gz | tar -C /opt/goland --strip-components 1 -xzvf -
RUN curl -L "https://download.jetbrains.com/product?code=GO&latest&distribution=linux" | tar -C /opt/goland --strip-components 1 -xzvf -
# Add a binary to the PATH that points to the goland startup script.
RUN ln -s /opt/goland/bin/goland.sh /usr/bin/goland
# Add a user `coder` so that you're not developing as the `root` user
RUN adduser coder && \
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
USER coder

View File

@ -1,9 +1,19 @@
FROM ubuntu:18.04
FROM ubuntu:20.04
RUN apt-get update && apt-get install -y \
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y \
git \
bash \
curl \
# The following libraries are required for the IDE to be able to communicate with
# code-server through xserver messaging.
htop \
man \
vim \
ssh \
sudo \
lsb-release \
ca-certificates \
locales \
gnupg \
# Packages required for multi-editor support
libxtst6 \
libxrender1 \
libfontconfig1 \
@ -12,7 +22,12 @@ RUN apt-get update && apt-get install -y \
# Install goland.
RUN mkdir -p /opt/goland
RUN curl -L https://download.jetbrains.com/go/goland-2019.3.3.tar.gz | tar -C /opt/goland --strip-components 1 -xzvf -
RUN curl -L "https://download.jetbrains.com/product?code=GO&latest&distribution=linux" | tar -C /opt/goland --strip-components 1 -xzvf -
# Add a binary to the PATH that points to the goland startup script.
RUN ln -s /opt/goland/bin/goland.sh /usr/bin/goland
# Add a user `coder` so that you're not developing as the `root` user
RUN adduser --gecos '' --disabled-password coder && \
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
USER coder