Skip to content

Commit bd34282

Browse files
authored
Initial version
1 parent 5bd704b commit bd34282

File tree

7 files changed

+21
-18
lines changed

7 files changed

+21
-18
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "<replace> remote desktop environment",
3-
"image": "ghcr.io/gbraad-apps/<replace>:latest",
2+
"name": "PyCharm remote desktop environment",
3+
"image": "ghcr.io/gbraad-apps/pycharm:latest",
44
"runArgs": [ "--cap-add=NET_ADMIN", "--cap-add=NET_RAW", "--device=/dev/net/tun", "--device=/dev/fuse" ],
55

66
"overrideCommand": false,

.github/workflows/build-container-bootc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
uses: actions/checkout@v4
1919
- name: Run podman build - (bootc)
2020
run: |
21-
podman build -t ghcr.io/gbraad-apps/<replace>-bootc:latest \
21+
podman build -t ghcr.io/gbraad-apps/pycharm-bootc:latest \
2222
--build-arg=BASE_IMAGE="ghcr.io/gbraad-devenv/fedora/rdesktop-bootc" \
2323
--build-arg=BASE_VERSION=41 \
2424
-f Containerfile .
2525
- name: Push image to ghcr.io - (bootc)
2626
run: |
2727
podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} \
28-
ghcr.io/gbraad-apps/<replace>-bootc:latest
28+
ghcr.io/gbraad-apps/pycharm-bootc:latest

.github/workflows/build-container.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
uses: actions/checkout@v4
1919
- name: Run podman build
2020
run: |
21-
podman build -t ghcr.io/gbraad-apps/<replace>:latest \
21+
podman build -t ghcr.io/gbraad-apps/pycharm:latest \
2222
--build-arg=BASE_IMAGE="ghcr.io/gbraad-devenv/fedora/rdesktop" \
2323
--build-arg=BASE_VERSION=41 \
2424
-f Containerfile .
2525
- name: Push image to ghcr.io
2626
run: |
2727
podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} \
28-
ghcr.io/gbraad-apps/<replace>:latest
28+
ghcr.io/gbraad-apps/pycharm:latest

.github/workflows/build-diskimage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ on:
55
workflow_dispatch:
66

77
env:
8-
IMAGE_NAME: ghcr.io/gbraad-apps/<replace>-bootc:latest
8+
IMAGE_NAME: ghcr.io/gbraad-apps/pycharm-bootc:latest
99
DISK_TYPE: qcow2
1010
ROOTFS: xfs
1111
ARCH: amd64
1212
BIB_IMAGE: quay.io/centos-bootc/bootc-image-builder:latest
13-
BODY: "Personal <replace> image"
13+
BODY: "Personal PyCharm image"
1414

1515
jobs:
1616
build:

.github/workflows/tailscale-rdesktop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
run: |
1212
podman run -d --name rdesktop \
1313
--cap-add=NET_ADMIN --cap-add=NET_RAW --device=/dev/net/tun --device=/dev/fuse \
14-
ghcr.io/gbraad-apps/<replace>:latest
14+
ghcr.io/gbraad-apps/pycharm:latest
1515
- name: Tailscale setup (root)
1616
run: |
1717
until podman exec rdesktop tailscale up --auth-key ${TAILSCALE_AUTHKEY} --hostname github-${HOSTNAME}

Containerfile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ FROM ${BASE_IMAGE}:${BASE_VERSION}
55

66
USER root
77

8-
RUN dnf install -y \
9-
<replace> \
10-
&& dnf clean all \
11-
&& rm -rf /var/cache/yum \
12-
&& git config -f /etc/rdesktop/rdesktop.ini \
13-
rdesktop.title "" \
8+
RUN URL="https://download.jetbrains.com/python/pycharm-community-2025.1.tar.gz" \
9+
&& INSTALL_DIR="/opt/pycharm" \
10+
&& mkdir -p "$INSTALL_DIR" \
11+
&& curl -L "$URL" -o /tmp/pycharm.tar.gz \
12+
&& tar --strip-components=1 -xzf /tmp/pycharm.tar.gz -C "$INSTALL_DIR" \
13+
&& rm /tmp/pycharm.tar.gz
14+
15+
RUN git config -f /etc/rdesktop/rdesktop.ini \
16+
rdesktop.title "PyCharm 2025.1" \
1417
&& git config -f /etc/rdesktop/rdesktop.ini \
15-
rdesktop.exec ""
18+
rdesktop.exec "/opt/pycharm/bin/pycharm.sh"
1619

1720
# ensure to become root for systemd
1821
#ENTRYPOINT ["/sbin/init"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Template to create personal apps
2-
================================
1+
Personal PyCharm
2+
================
33

44
> [!NOTE]
55
> This image is based on my [gbraad-devenv/fedora](https://github.com/gbraad-devenv/fedora) image, and is therefore personalized;

0 commit comments

Comments
 (0)