Skip to content

Commit

Permalink
Convert to Debian
Browse files Browse the repository at this point in the history
  • Loading branch information
95-martin-orion authored Jul 15, 2022
1 parent 1b3d0f1 commit 9a80db4
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions jupyter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,33 +1,24 @@
# Base OS
FROM centos:8
FROM debian:bullseye
USER root

# Centos 8 has reach end of life: https://www.centos.org/centos-linux-eol/
# Configuration must be loaded from the vault.
RUN pushd /etc/yum.repos.d/ && \
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* && \
popd

# Install baseline
RUN yum -y update && \
yum install -y epel-release && \
yum group install -y "Development Tools" && \
yum install -y python3-devel cmake python3-pip git && \
python3 -m pip install --upgrade pip && \
python3 -m pip install cirq && \
python3 -m pip install cirq[contrib] && \
python3 -m pip install qsimcirq && \
python3 -m pip install jupyterlab && \
RUN apt-get -y update && \
apt-get install -y python3-dev python3-pip git && \
python3 -m pip install --upgrade pip && \
python3 -m pip install cirq && \
python3 -m pip install cirq[contrib] && \
python3 -m pip install qsimcirq && \
python3 -m pip install jupyterlab && \
python3 -m pip install jupyter_http_over_ws && \
jupyter serverextension enable --py jupyter_http_over_ws && \
cd / && \
git clone https://github.com/quantumlib/qsim.git
cd / && \
git clone https://github.com/quantumlib/qsim.git

RUN jupyter serverextension enable --py jupyter_http_over_ws

CMD ["jupyter-notebook", "--port=8888", "--no-browser",\
"--ip=0.0.0.0", "--allow-root", \
"--NotebookApp.allow_origin='*'", \
"--NotebookApp.allow_origin='*'", \
"--NotebookApp.port_retries=0", \
"--NotebookApp.token=''"]
"--NotebookApp.token=''"]

0 comments on commit 9a80db4

Please sign in to comment.