OpenFPGA/Dockerfile

41 lines
1.5 KiB
Docker
Raw Normal View History

2022-04-30 16:36:21 -05:00
FROM ghcr.io/lnis-uofu/openfpga-master:latest
# Install node js
2023-02-02 16:43:40 -06:00
USER root
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
2022-04-30 16:36:21 -05:00
RUN curl -fsSL https://code-server.dev/install.sh | sh
RUN apt-get install -y nodejs
RUN apt-get install tree
RUN code-server --install-extension ms-python.python
ARG NB_USER=openfpga_user
ARG NB_UID=1000
ENV USER ${NB_USER}
ENV NB_UID ${NB_UID}
ENV HOME /home/${NB_USER}
RUN chown -R ${NB_UID} ${HOME}
RUN chown -R ${NB_UID} /opt/openfpga
USER ${NB_USER}
ENV PATH $PATH:/home/${NB_USER}/.local/bin
2023-02-02 16:49:21 -06:00
RUN python3 -m pip install --upgrade pip
2022-04-30 16:36:21 -05:00
RUN python3 -m pip install --user --no-cache-dir notebook
RUN python3 -m pip install --user --no-cache-dir jupyterlab
RUN python3 -m pip install --user --no-cache-dir jupyterhub
RUN python3 -m pip install --user --no-cache-dir jupyter-server-proxy
RUN python3 -m pip install --user --no-cache-dir jupyter-vscode-proxy
RUN npm install @jupyterlab/server-proxy
RUN jupyter serverextension enable --py jupyter_server_proxy
RUN jupyter labextension install @jupyterlab/server-proxy
RUN jupyter lab build
2023-02-02 17:12:53 -06:00
WORKDIR /opt/openfpga/
2022-05-03 15:20:10 -05:00
RUN git reset --hard HEAD
2022-05-02 11:08:19 -05:00
# Set up terminal
2022-05-02 13:46:07 -05:00
RUN echo 'export PS1="\[$(tput bold)\]\[\033[38;5;220m\]\u\[$(tput sgr0)\]:\[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;14m\]\W\[$(tput sgr0)\]\\$\[$(tput sgr0) \]"' >> ~/.bashrc
2022-05-03 15:03:52 -05:00
RUN echo 'alias codeopen="code-server -r "' >> ~/.bashrc
RUN mkdir -p .vscode && echo '{"files.associations": {"*.openfpga": "shellscript"},"workbench.colorTheme": "Monokai"}' > .vscode/settings.json