Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
davidban77 committed Jul 11, 2024
1 parent 44b325c commit b035ab2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
18 changes: 12 additions & 6 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
FROM ghcr.io/srl-labs/containerlab/clab-devcontainer:0.55.1

USER vscode
# USER vscode

WORKDIR /netobs
# WORKDIR /netobs

# COPY --chown=vscode:vscode --chmod=700 . /netobs
COPY . /netobs
# # COPY . /netobs

RUN pip install --upgrade pip && \
pip install .
# RUN pip install --upgrade pip && \
# pip install . && \
# cp example.env .env && \
# netobs docker build

CMD [ "zsh" ]
COPY ./build/cEOS64-lab-4.32.0.1F.tar cEOS64-lab-4.32.0.1F.tar

# RUN docker load -i cEOS64-lab-4.32.0.1F.tar
# RUN docker import cEOS64-lab-4.32.0.1F.tar ceos:image && \
# rm cEOS64-lab-4.32.0.1F.tar
10 changes: 6 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
// "image": "ghcr.io/network-observability/netobs-devcontainer:latest",
"image": "ghcr.io/srl-labs/containerlab/clab-devcontainer:0.55.1",
"image": "ghcr.io/network-observability/netobs-devcontainer:all-in-one-test",
// "image": "ghcr.io/srl-labs/containerlab/clab-devcontainer:0.55.1",
"remoteUser": "vscode",
// "containerUser": "vscode",
"hostRequirements": {
"cpus": 4,
"memory": "8gb",
"storage": "32gb"
},
"postCreateCommand": "pip install . && cp example.env .env && netobs docker build",
"postStartCommand": "netobs docker start"
"postCreateCommand": "pip install . && cp example.env .env && netobs docker build"
// "postStartCommand": "netobs docker start"
}

0 comments on commit b035ab2

Please sign in to comment.