Compare commits

...

8 Commits

Author SHA1 Message Date
Evan Simkowitz a4ac8be3da attempt to fix the dockerfile for macos 2024-08-28 12:32:41 -07:00
Sujal Goswami fd707dd857 Add devconatainer config file for easy development using VS Code. 2024-08-28 00:17:58 +05:30
Sujal Goswami 71fcc7a542 Update .dockerignore
Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
2024-08-26 15:02:36 +05:30
Sujal Goswami 702446cba8 Update .dockerignore
Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
2024-08-26 15:02:27 +05:30
Sujal Goswami 15acdcc850 Update .dockerignore
Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
2024-08-26 15:02:03 +05:30
Sujal Goswami fc053b06ae Update .dockerignore
Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
2024-08-26 15:01:45 +05:30
Sujal Goswami 37ba95bbe7 Update .dockerignore
Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
2024-08-26 15:01:26 +05:30
Sujal Goswami a5e6885597 chore: containerize project by adding Docker configuration files and ignore unnecessary files 2024-08-26 00:00:48 +05:30
4 changed files with 80 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
{
"name": "Wave Terminal Dev Container",
"dockerComposeFile": "../docker-compose.yml",
"service": "wave",
"workspaceFolder": "/app/waveterm",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"extensions": ["golang.go", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
}
},
"runServices": ["dbus"],
"postAttachCommand": "scripthaus run webpack-watch"
}
+21
View File
@@ -0,0 +1,21 @@
# Ignore node_modules and other dependencies
node_modules
.yarn
# Ignore build directories
build
dist
# Ignore logs and temporary files
logs
*.log
*.tmp
# Ignore test and coverage files
coverage
test-results
# Ignore OS-specific files
.DS_Store
Thumbs.db
+25
View File
@@ -0,0 +1,25 @@
FROM ubuntu:latest
WORKDIR /app
RUN apt update && \
apt install -y golang-go nodejs npm libgtk2.0-0t64 libgtk-3-0t64 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb && \
npm install -g corepack
RUN corepack enable && \
yarn install
RUN git clone https://github.com/scripthaus-dev/scripthaus.git
WORKDIR /app/scripthaus
RUN CGO_ENABLED=1 go build -o scripthaus cmd/main.go && \
cp scripthaus /usr/local/bin
WORKDIR /app
RUN mkdir waveterm
WORKDIR /app/waveterm
COPY . .
ENV GOFLAGS="-buildvcs=false"
ENV DISPLAY=":0"
RUN useradd -ms /bin/bash wave
+18
View File
@@ -0,0 +1,18 @@
version: '3.8'
services:
wave:
build:
context: .
dockerfile: Dockerfile
container_name: waveterminal
environment:
- DISPLAY=${DISPLAY}
- NODE_ENV=development
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- .:/app/waveterm
stdin_open: true
tty: true
ports:
- "3000:3000"