Skip to content

Commit 3ffd6d1

Browse files
committed
Add VSCode for Go Containerfile and docs
An OpenShift AI Image running VSCode for Go Lang development.
0 parents  commit 3ffd6d1

File tree

4 files changed

+764
-0
lines changed

4 files changed

+764
-0
lines changed

.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Prerequisites
2+
*.d
3+
4+
# Compiled Object files
5+
*.slo
6+
*.lo
7+
*.o
8+
*.obj
9+
10+
# Precompiled Headers
11+
*.gch
12+
*.pch
13+
14+
# Compiled Dynamic libraries
15+
*.so
16+
*.dylib
17+
*.dll
18+
19+
# Fortran module files
20+
*.mod
21+
*.smod
22+
23+
# Compiled Static libraries
24+
*.lai
25+
*.la
26+
*.a
27+
*.lib
28+
29+
# Executables
30+
*.exe
31+
*.out
32+
*.app
33+
34+
# Eclipse
35+
.project
36+
.settings
37+

Containerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM quay.io/opendatahub-contrib/workbench-images:vscode-datascience-c9s-py311_2023c_latest
2+
3+
USER root
4+
5+
RUN yum install -y \
6+
golang
7+
RUN pip install jupyterlab
8+
RUN go install golang.org/x/tools/cmd/goimports@latest
9+
RUN go install github.com/gopherdata/gophernotes@v0.7.5
10+
RUN mkdir -p /opt/app-root/share/jupyter/kernels/gophernotes
11+
RUN rsync -r "$(go env GOPATH)/pkg/mod/github.com/gopherdata/gophernotes@v0.7.5/kernel/" /opt/app-root/share/jupyter/kernels/gophernotes/
12+
RUN sed -i -e "s|"'"'"gophernotes"'"'"|"$(go env GOPATH)/bin/gophernotes"|" /opt/app-root/share/jupyter/kernels/gophernotes/kernel.json
13+
RUN jupyter kernelspec install /opt/app-root/share/jupyter/kernels/gophernotes --name go
14+
15+
USER 1001

0 commit comments

Comments
 (0)