Skip to content

Commit 74660ee

Browse files
author
waffles-dev
committed
Adding devcontainer
1 parent b0cd0dc commit 74660ee

4 files changed

Lines changed: 82 additions & 3 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
FROM fedora:44
2+
3+
RUN dnf -y update && \
4+
dnf -y install \
5+
sudo \
6+
git \
7+
curl \
8+
which \
9+
findutils \
10+
procps-ng \
11+
shadow-utils \
12+
passwd \
13+
gcc \
14+
gcc-c++ \
15+
systemd-devel \
16+
make \
17+
rpm \
18+
rpm-build \
19+
pkgconf-pkg-config \
20+
systemd-devel \
21+
libxcrypt-compat \
22+
glib2-devel \
23+
gtk3-devel \
24+
webkit2gtk4.1-devel \
25+
libnotify-devel \
26+
openssl-devel \
27+
ca-certificates \
28+
tar \
29+
zip \
30+
gzip \
31+
xz \
32+
&& dnf clean all
33+
34+
# Create vscode user
35+
RUN useradd -ms /bin/bash vscode && \
36+
echo "vscode ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/vscode
37+
38+
# Go
39+
ARG GO_VERSION=1.24.5
40+
RUN curl -fsSL https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz \
41+
| tar -C /usr/local -xz
42+
43+
ENV PATH="/usr/local/go/bin:${PATH}"
44+
45+
USER vscode
46+
47+
# Bun
48+
RUN curl -fsSL https://bun.sh/install | bash
49+
50+
ENV BUN_INSTALL=/home/vscode/.bun
51+
ENV PATH="${BUN_INSTALL}/bin:/usr/local/go/bin:${PATH}"
52+
53+
WORKDIR /workspaces/winboat

.devcontainer/devcontainer.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "WinBoat Development",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"remoteUser": "vscode",
7+
"workspaceFolder": "/workspaces/winboat",
8+
"mounts": [
9+
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
10+
],
11+
"runArgs": [
12+
"--init"
13+
],
14+
"containerEnv": {
15+
"CGO_ENABLED": "1"
16+
},
17+
"postCreateCommand": "bun install",
18+
"customizations": {
19+
"vscode": {
20+
"extensions": [
21+
"golang.go",
22+
"oven.bun-vscode"
23+
]
24+
}
25+
}
26+
}

bun.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"chalk": "^5.6.2",
2828
"chokidar": "^5.0.0",
2929
"electron": "^40.2.1",
30-
"electron-builder": "^26.15.2",
30+
"electron-builder": "^26.7.0",
3131
"postcss": "^8.5.6",
3232
"prettier": "3.8.1",
3333
"tailwindcss": "^3.4.17",
@@ -62,4 +62,4 @@
6262
"patchedDependencies": {
6363
"usb@2.17.0": "patches/usb@2.17.0.patch"
6464
}
65-
}
65+
}

0 commit comments

Comments
 (0)