mirror of
https://github.com/avinal/xeus-basic.git
synced 2026-01-09 22:58:36 +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
|
||||
/cpm_modules
|
||||
.DS_Store
|
||||
.idea
|
||||
.idea
|
||||
.cache
|
||||
@@ -1,7 +1,6 @@
|
||||
FROM ubuntu:latest
|
||||
FROM gitpod/workspace-full:latest
|
||||
|
||||
USER root
|
||||
WORKDIR /xbasic
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
@@ -10,14 +9,18 @@ RUN apt-get update \
|
||||
cmake \
|
||||
make \
|
||||
g++ \
|
||||
ninja-build \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV PATH="/xbasic/miniconda3/bin:${PATH}"
|
||||
ARG PATH="/xbasic/miniconda3/bin:${PATH}"
|
||||
USER gitpod
|
||||
RUN wget --no-check-certificate \
|
||||
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
|
||||
&& mkdir /xbasic/.conda \
|
||||
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /xbasic/miniconda3 \
|
||||
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
|
||||
&& 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:
|
||||
file: Dockerfile
|
||||
file: .gitpod.dockerfile
|
||||
ports:
|
||||
- port: 8888
|
||||
visibility: public
|
||||
onOpen: notify
|
||||
workspaceLocation: xbasic
|
||||
checkoutLocation: xbasic
|
||||
onOpen: open-browser
|
||||
tasks:
|
||||
- init: |
|
||||
export PATH="/home/gitpod/miniconda3/bin/:$PATH"
|
||||
conda activate base
|
||||
- command: conda activate base
|
||||
- command: echo -e "\nalias jupyternb=\"jupyter notebook --NotebookApp.allow_origin=\'$(gp url 8888)\' --NotebookApp.token='' --NotebookApp.password=''\" >> ~/.bashrc
|
||||
|
||||
Reference in New Issue
Block a user