Update PyCharm CentOS and Unbuntu images
This commit is contained in:
parent
4288be5f28
commit
00e455dedb
|
@ -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 pycharm.
|
||||
RUN mkdir -p /opt/pycharm
|
||||
RUN curl -L https://download.jetbrains.com/python/pycharm-community-2019.3.4.tar.gz | tar -C /opt/pycharm --strip-components 1 -xzvf -
|
||||
RUN curl -L "https://download.jetbrains.com/product?code=PCC&latest&distribution=linux" | tar -C /opt/pycharm --strip-components 1 -xzvf -
|
||||
|
||||
# Add a binary to the PATH that points to the pycharm startup script.
|
||||
RUN ln -s /opt/pycharm/bin/pycharm.sh /usr/bin/pycharm
|
||||
|
||||
# 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
|
||||
|
|
|
@ -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 pycharm.
|
||||
RUN mkdir -p /opt/pycharm
|
||||
RUN curl -L https://download.jetbrains.com/python/pycharm-community-2019.3.4.tar.gz | tar -C /opt/pycharm --strip-components 1 -xzvf -
|
||||
RUN curl -L "https://download.jetbrains.com/product?code=PCC&latest&distribution=linux" | tar -C /opt/pycharm --strip-components 1 -xzvf -
|
||||
|
||||
# Add a binary to the PATH that points to the pycharm startup script.
|
||||
RUN ln -s /opt/pycharm/bin/pycharm.sh /usr/bin/pycharm
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue