diff --git a/Containerfile b/Containerfile index 102ac52..f66f346 100644 --- a/Containerfile +++ b/Containerfile @@ -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 diff --git a/main.ini b/main.ini index c62aeaf..5d29b23 100644 --- a/main.ini +++ b/main.ini @@ -6,4 +6,4 @@ pull=true replace=true # Export apps -exported_apps="code rstudio" +exported_apps="pycharm-community code"