Add Go & cleanup
This commit is contained in:
parent
c14b5e9501
commit
859349dccf
3 changed files with 24 additions and 7 deletions
|
@ -7,11 +7,11 @@ on:
|
||||||
- 'main'
|
- 'main'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_act:
|
build_jetbrains:
|
||||||
runs-on: 'priviliged'
|
runs-on: 'priviliged'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
toolchain: [symfony]
|
toolchain: [symfony, go]
|
||||||
steps:
|
steps:
|
||||||
- name: Install Docker
|
- name: Install Docker
|
||||||
run: |
|
run: |
|
||||||
|
@ -32,8 +32,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: "{{defaultContext}}:jetbrains/${{ matrix.toolchain }}"
|
context: "{{defaultContext}}:jetbrains/${{ matrix.toolchain }}"
|
||||||
push: true
|
push: true
|
||||||
build-args: JETBRAINS_DEPENDENCIES=fuse fuse-libs libXi libXrender libXtst fontconfig gtk3 tar dbus-libs git just jq fzf
|
build-args: JETBRAINS_DEPENDENCIES=fuse fuse-libs libXi libXrender libXtst fontconfig gtk3 tar dbus-libs git just jq fzf screen highlight
|
||||||
tags: |
|
tags: |
|
||||||
git.euph.dev/development_tools/distrobox/jetbrains/${{ matrix.toolchain }}:latest
|
git.euph.dev/development_tools/distrobox/jetbrains/${{ matrix.toolchain }}:latest
|
||||||
git.euph.dev/development_tools/distrobox/jetbrains/${{ matrix.toolchain }}:${{ gitea.run_number }}
|
git.euph.dev/development_tools/distrobox/jetbrains/${{ matrix.toolchain }}:${{ gitea.run_number }}
|
||||||
|
|
||||||
|
|
19
jetbrains/go/Dockerfile
Normal file
19
jetbrains/go/Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
FROM fedora:40
|
||||||
|
ARG JETBRAINS_DEPENDENCIES
|
||||||
|
|
||||||
|
# Set environment variables
|
||||||
|
ENV BOX_NAME="go"
|
||||||
|
|
||||||
|
# Install required packages and setup sources
|
||||||
|
RUN dnf install -y \
|
||||||
|
$JETBRAINS_DEPENDENCIES \
|
||||||
|
golang \
|
||||||
|
&& dnf clean all \
|
||||||
|
&& go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||||
|
|
||||||
|
# Link outside tooling
|
||||||
|
RUN alias docker="podman"
|
||||||
|
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/podman
|
||||||
|
|
||||||
|
# Command to run on container start
|
||||||
|
CMD ["distrobox-enter", "--name", "$BOX_NAME"]
|
|
@ -2,15 +2,13 @@ FROM fedora:40
|
||||||
ARG JETBRAINS_DEPENDENCIES
|
ARG JETBRAINS_DEPENDENCIES
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV BOX_NAME="phpstorm"
|
ENV BOX_NAME="symfony"
|
||||||
|
|
||||||
# Install required packages and setup sources
|
# Install required packages and setup sources
|
||||||
RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.rpm.sh' | bash \
|
RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.rpm.sh' | bash \
|
||||||
&& dnf install -y \
|
&& dnf install -y \
|
||||||
$JETBRAINS_DEPENDENCIES \
|
$JETBRAINS_DEPENDENCIES \
|
||||||
php \
|
php \
|
||||||
screen \
|
|
||||||
highlight \
|
|
||||||
composer \
|
composer \
|
||||||
php-pdo \
|
php-pdo \
|
||||||
php-mysqlnd \
|
php-mysqlnd \
|
||||||
|
|
Loading…
Reference in a new issue