vscode devcontainer

pull/474/head
Steven Honson 2021-05-01 04:57:03 +00:00
rodzic 1246fa4a6e
commit a37ec1f92f
3 zmienionych plików z 39 dodań i 2 usunięć

Wyświetl plik

@ -0,0 +1,5 @@
{
"build": { "dockerfile": "Dockerfile.dev" },
"forwardPorts": [ 5000 ],
"runArgs": [ "--hostname=radiosonde_auto_rx", "--network=host", "--privileged" ]
}

3
.gitignore vendored
Wyświetl plik

@ -22,9 +22,8 @@ venv
*.autosave
.scannerwork
# Custom config file
auto_rx/config/station.cfg
auto_rx/station.cfg
auto_rx/log/
auto_rx/log_power.csv

33
Dockerfile.dev 100644
Wyświetl plik

@ -0,0 +1,33 @@
FROM python:3.7-buster
EXPOSE 5000/tcp
# Upgrade base packages and install dependencies.
RUN case $(uname -m) in \
"armv6l") extra_packages="libatlas3-base libgfortran5" ;; \
"armv7l") extra_packages="libatlas3-base libgfortran5" ;; \
esac && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
libatomic1 \
rng-tools \
rtl-sdr \
sox \
tini \
usbutils \
${extra_packages} && \
rm -rf /var/lib/apt/lists/*
# Copy in requirements.txt.
COPY auto_rx/requirements.txt \
/tmp/requirements.txt
# Install Python packages.
RUN pip3 --no-cache-dir install \
--extra-index-url https://www.piwheels.org/simple \
-r /tmp/requirements.txt
# Run bash.
WORKDIR /root
CMD ["/bin/bash"]