Skip to content

Commit

Permalink
enable docker container development environment
Browse files Browse the repository at this point in the history
  • Loading branch information
nznobody committed Aug 29, 2021
1 parent ed4f5c3 commit b3606ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@
"extensions": [
"ms-python.python",
"lextudio.restructuredtext",
"trond-snekvik.simple-rst"
"trond-snekvik.simple-rst",
"ms-azuretools.vscode-docker"
],
"portsAttributes": {
"80": {
"label": "HTTP_API"
}
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
Expand All @@ -44,7 +45,7 @@
// "shutdownAction": "none",

// Uncomment the next line to run commands after the container is created - for example installing curl.
// "postCreateCommand": "apt-get update && apt-get install -y curl",
"postCreateCommand": "ln -f -s /usr/local/bin/python3 /usr/bin/python3 && python3 -m pip install -U sphinx rstcheck snooty && python3 setup.py develop",

// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode"
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ services:
- .:/workspace:cached

# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details.
# - /var/run/docker.sock:/var/run/docker.sock
- /var/run/docker.sock:/var/run/docker.sock

# Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust.
# cap_add:
Expand Down
4 changes: 2 additions & 2 deletions dev.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://github.com/pycom/pycom-libraries/tree/master/pycom-docker-fw-build

FROM debian:buster-slim
FROM python:3.9-slim-buster

RUN apt-get update && \
apt-get -y install curl zip git wget && \
Expand All @@ -14,7 +14,7 @@ RUN apt-get update && \
git clone --recursive https://github.com/pycom/pycom-micropython-sigfox.git

ADD tools/pycom-firmware-build /usr/bin/build
ADD requirements-cpython.txt requirements-build.txt requirements-dev.txt requirements-test.txt /tmp/terkin/requirements/
ADD requirements-cpython.txt requirements-docs.txt requirements-build.txt requirements-dev.txt requirements-test.txt /tmp/terkin/requirements/

RUN find /tmp/terkin/requirements/ -name "requirements*.txt" -type f -exec python3 -m pip install -r '{}' ';'

Expand Down

0 comments on commit b3606ca

Please sign in to comment.