-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b3d0f1
commit 9a80db4
Showing
1 changed file
with
12 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=''"] |