Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 10 additions & 45 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,48 +1,13 @@
# Get base image
FROM registry.opensuse.org/opensuse/distrobox:latest

# Set environment variables
ENV PYCHARM_VERSION=2024.3 \
INSTALL_DIR=/opt/pycharm

# Update the system and install required packages
RUN zypper refresh && zypper -n dup && zypper install -y --no-recommends \
python3 \
gawk \
rstudio-desktop \
gh \
wget \
java-11-openjdk \
xz \
libXrender1 \
libXtst6 \
libX11-6 \
libXrandr2 \
libXi6 \
libXinerama1 \
fontconfig \
freetype2 \
&& zypper clean -a

# Install poetry
RUN PYTHON_VERSION=$(python3 --version | awk '{print $2}' | awk -F. '{print $1 $2}') \
&& sudo zypper install -y python$PYTHON_VERSION-poetry
ENV FEDORA_VERSION=41

# Install Codium
RUN sudo zypper ar -p 100 obs://devel:tools:ide:vscode devel_tools_ide_vscode
RUN sudo zypper --gpg-auto-import-keys ref
RUN sudo zypper -n in code
# Get base image
FROM registry.fedoraproject.org/fedora:${FEDORA_VERSION}

# Download and install PyCharm Community Edition
USER root
RUN mkdir -p ${INSTALL_DIR} && \
wget -O /tmp/pycharm.tar.gz https://download.jetbrains.com/python/pycharm-community-${PYCHARM_VERSION}.tar.gz && \
tar -xzf /tmp/pycharm.tar.gz --strip-components=1 -C ${INSTALL_DIR} && \
rm /tmp/pycharm.tar.gz

# Set the working directory
WORKDIR ${INSTALL_DIR}
USER ${USER_NAME}

# Add PyCharm bin to PATH
ENV PATH="${INSTALL_DIR}/bin:$PATH"
# Update the system and install required packages
RUN dnf update -y && \
dnf copr enable phracek/PyCharm -y && \
rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' && \
dnf install -y gtk4 pycharm-community pycharm-community-plugins code
dnf clean all
2 changes: 1 addition & 1 deletion main.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ pull=true
replace=true

# Export apps
exported_apps="code rstudio"
exported_apps="pycharm-community code"
Loading