mirror of
https://github.com/avinal/xeus-basic.git
synced 2026-01-10 07:08:35 +05:30
fix gitpod configurations
Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,4 +2,5 @@
|
|||||||
/.vscode
|
/.vscode
|
||||||
/cpm_modules
|
/cpm_modules
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.idea
|
.idea
|
||||||
|
.cache
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
FROM ubuntu:latest
|
FROM gitpod/workspace-full:latest
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
WORKDIR /xbasic
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
@@ -10,14 +9,18 @@ RUN apt-get update \
|
|||||||
cmake \
|
cmake \
|
||||||
make \
|
make \
|
||||||
g++ \
|
g++ \
|
||||||
|
ninja-build \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV PATH="/xbasic/miniconda3/bin:${PATH}"
|
USER gitpod
|
||||||
ARG PATH="/xbasic/miniconda3/bin:${PATH}"
|
|
||||||
RUN wget --no-check-certificate \
|
RUN wget --no-check-certificate \
|
||||||
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
|
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
|
||||||
&& mkdir /xbasic/.conda \
|
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
|
||||||
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /xbasic/miniconda3 \
|
|
||||||
&& rm -f Miniconda3-latest-Linux-x86_64.sh
|
&& rm -f Miniconda3-latest-Linux-x86_64.sh
|
||||||
|
|
||||||
RUN conda install -c conda-forge jupyter xeus xtl nlohmann_json cppzmq -y && conda init
|
ENV PATH=$PATH:$HOME/miniconda3
|
||||||
|
ENV PATH=$PATH:$HOME/miniconda3/bin
|
||||||
|
|
||||||
|
RUN conda install -c conda-forge jupyter xeus xtl nlohmann_json cppzmq -y
|
||||||
|
RUN conda init
|
||||||
|
|
||||||
11
.gitpod.yml
11
.gitpod.yml
@@ -1,12 +1,9 @@
|
|||||||
image:
|
image:
|
||||||
file: Dockerfile
|
file: .gitpod.dockerfile
|
||||||
ports:
|
ports:
|
||||||
- port: 8888
|
- port: 8888
|
||||||
visibility: public
|
visibility: public
|
||||||
onOpen: notify
|
onOpen: open-browser
|
||||||
workspaceLocation: xbasic
|
|
||||||
checkoutLocation: xbasic
|
|
||||||
tasks:
|
tasks:
|
||||||
- init: |
|
- command: conda activate base
|
||||||
export PATH="/home/gitpod/miniconda3/bin/:$PATH"
|
- command: echo -e "\nalias jupyternb=\"jupyter notebook --NotebookApp.allow_origin=\'$(gp url 8888)\' --NotebookApp.token='' --NotebookApp.password=''\" >> ~/.bashrc
|
||||||
conda activate base
|
|
||||||
|
|||||||
Reference in New Issue
Block a user