Skip to content

Commit

Permalink
Fix devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
GDYendell committed Jun 6, 2024
1 parent 80bedea commit 3738b1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// For format details, see https://containers.dev/implementors/json_reference/
{
"name": "epics-containers IOC devcontainer",
"name": "odin-data devcontainer",
"build": {
"dockerfile": "../Dockerfile",
"context": "..",
Expand Down Expand Up @@ -39,6 +39,8 @@
// One time global setup commands inside the container
"postCreateCommand": "bash .devcontainer/postCreateCommand ${devcontainerId}",
"runArgs": [
// Allow the container to access the host X11 display and EPICS CA
"--net=host",
// Make sure SELinux does not disable write access to host filesystems like tmp
"--security-opt=label=disable"
],
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ RUN add-apt-repository -y ppa:deadsnakes/ppa && \
libblosc-dev libboost-all-dev libhdf5-dev liblog4cxx-dev \
libpcap-dev libczmq-dev \
# python
python3.11-dev python3-pip python3-venv && \
python3.11-dev python3.11-venv && \
# tidy up
apt-get -y clean all

# python dependencies
RUN python3 -m venv /venv && \
ENV PATH=/venv/bin:$PATH
RUN python3.11 -m ensurepip && \
python3.11 -m venv /venv && \
python -m pip install --upgrade pip && \
python -m pip install git+https://github.com/odin-detector/odin-control@1.3.0

Expand Down

0 comments on commit 3738b1d

Please sign in to comment.