Skip to content

Commit 3024eab

Browse files
committed
add gitpod config file and dockerfile
1 parent c212e04 commit 3024eab

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.gitpod.Dockerfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM gitpod/workspace-full-vnc
2+
3+
USER gitpod
4+
5+
RUN sudo apt-get update -qq \
6+
&& DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends\
7+
gtkwave \
8+
libgnat-9 \
9+
libllvm10 \
10+
&& sudo apt-get autoclean && sudo apt-get clean && sudo apt-get -y autoremove \
11+
&& sudo update-ca-certificates \
12+
&& sudo rm -rf /var/lib/apt/lists/*
13+
14+
# Install extra Python packages
15+
RUN pip3 install -U pip \
16+
&& pip3 install -U pytest
17+
18+
# Install GHDL (nightly LLVM backend)
19+
RUN curl -fsSL https://github.com/ghdl/ghdl/releases/download/nightly/ghdl-gha-ubuntu-20.04-llvm.tgz | \
20+
sudo tar -xzf - -C /usr/local
21+
22+
# Install VUnit from sources (master branch)
23+
RUN git clone --recurse-submodules https://github.com/VUnit/vunit \
24+
&& cd vunit \
25+
&& python setup.py install \
26+
&& cd .. \
27+
&& rm -rf vunit

.gitpod.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
4+
tasks:
5+
- before: >
6+
git clone --recurse-submodules https://github.com/VUnit/vunit
7+
init: >
8+
cd ghdl_ug/ &&
9+
gp preview README.md &&
10+
gp open hello.vhd &&
11+
gp open heartbeat.vhd &&
12+
gp open adder.vhd &&
13+
gp open tb_adder.vhd
14+
15+
# https://www.gitpod.io/docs/config-ports/
16+
ports:
17+
- port: 6080 # VNC for e.g. gtkwave
18+
onOpen: notify
19+
- port: 5900
20+
onOpen: ignore
21+
22+
# TODO: add ghdl-ls and the VSIX
23+
#vscode:
24+
# extensions:

0 commit comments

Comments
 (0)