move deps to Dockerfile
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
FROM mcr.microsoft.com/devcontainers/go:2-1.24-bookworm
|
||||||
|
|
||||||
|
RUN apt-get update && apt install -y libmpv-dev gcc libegl1-mesa-dev xorg-dev
|
||||||
|
|
||||||
|
USER vscode
|
||||||
|
RUN go install fyne.io/fyne/v2/cmd/fyne@latest
|
||||||
@@ -2,23 +2,22 @@
|
|||||||
// README at: https://github.com/devcontainers/templates/tree/main/src/go .
|
// README at: https://github.com/devcontainers/templates/tree/main/src/go .
|
||||||
{
|
{
|
||||||
"name": "Supersonic",
|
"name": "Supersonic",
|
||||||
"image": "mcr.microsoft.com/devcontainers/go:2-1.24-bookworm",
|
"dockerFile": "Dockerfile",
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
"features": {
|
"features": {
|
||||||
"desktop-lite": {
|
"desktop-lite": {
|
||||||
"password": "your_password",
|
"password": "your_password",
|
||||||
"webPort": "6080",
|
"webPort": "6080",
|
||||||
"vncPort": "5901"
|
"vncPort": "5901"
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"VNC_RESOLUTION": "1920x1080x24",
|
"VNC_RESOLUTION": "1920x1080x24",
|
||||||
},
|
},
|
||||||
"onCreateCommand": {
|
"onCreateCommand": {
|
||||||
"log": "echo 'Starting post-create script...'",
|
"log": "echo 'Starting post-create script...'",
|
||||||
"apt": "sudo .devcontainer/init-apt.sh",
|
|
||||||
"go": ".devcontainer/init-go.sh",
|
"go": ".devcontainer/init-go.sh",
|
||||||
"config": "bash -c 'mkdir -p ~/.config/supersonic && (cp .devcontainer/custom-config.toml ~/.config/supersonic/config.toml 2> /dev/null || cp .devcontainer/default-config.toml ~/.config/supersonic/config.toml)'",
|
"config": "bash -c 'mkdir -p ~/.config/supersonic && (cp .devcontainer/custom-config.toml ~/.config/supersonic/config.toml 2> /dev/null || cp .devcontainer/default-config.toml ~/.config/supersonic/config.toml)'",
|
||||||
"keyring": "bash -c 'echo \"source $(pwd)/.devcontainer/init-keychain.sh\" >> /home/vscode/.bashrc'",
|
"keyring": "bash -c '.devcontainer/init-keychain.sh'",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
apt update
|
|
||||||
apt install -y libmpv-dev gcc libegl1-mesa-dev xorg-dev
|
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
go install fyne.io/fyne/v2/cmd/fyne@latest
|
# handled by Dockerfile
|
||||||
|
# go install fyne.io/fyne/v2/cmd/fyne@latest
|
||||||
|
|
||||||
go get
|
go get
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
mkdir -p /home/vscode/.local/share/keyrings
|
||||||
eval "$(dbus-launch --sh-syntax)"
|
cp .devcontainer/login.keyring /home/vscode/.local/share/keyrings
|
||||||
eval "$(printf '\n' | gnome-keyring-daemon --unlock)"
|
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
[keyring]
|
||||||
|
display-name=login
|
||||||
|
ctime=1763913973
|
||||||
|
mtime=0
|
||||||
|
lock-on-idle=false
|
||||||
|
lock-after=false
|
||||||
|
|
||||||
|
[1]
|
||||||
|
item-type=0
|
||||||
|
display-name=Password for 'f9056891-50cc-4161-9e27-f50f3db32a8c' on 'supersonic'
|
||||||
|
secret=demo
|
||||||
|
mtime=1763914175
|
||||||
|
ctime=1763914175
|
||||||
|
|
||||||
|
[1:attribute0]
|
||||||
|
name=service
|
||||||
|
type=string
|
||||||
|
value=supersonic
|
||||||
|
|
||||||
|
[1:attribute1]
|
||||||
|
name=username
|
||||||
|
type=string
|
||||||
|
value=f9056891-50cc-4161-9e27-f50f3db32a8c
|
||||||
Reference in New Issue
Block a user