pivoting project to use a privileged, airgapped container to interface with encrypted device rather than passing an unencrypted device through to the container

This commit is contained in:
Michael Scalzetti 2022-10-04 20:32:04 -04:00
parent aec955386a
commit 7efdcc684e
2 changed files with 17 additions and 1 deletions

View File

@ -7,7 +7,8 @@ WORKDIR /notes
RUN ln -snf /usr/share/zoneinfo/America/New_York /etc/localtime && \
echo "America/New_York" > /etc/timezone
RUN apt-get update && apt-get install -y curl vim neovim zsh git \
python3-wheel python3-pip software-properties-common
python3-wheel python3-pip software-properties-common
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y cryptsetup
RUN add-apt-repository ppa:deadsnakes/ppa
RUN rm -f /usr/bin/python /usr/bin/pip /usr/bin/python3
RUN ln -s /usr/bin/pip3 /usr/bin/pip

15
docker-compose.yaml Normal file
View File

@ -0,0 +1,15 @@
version: '3'
services:
priv:
build:
context: .
image: docker.scalz.cloud/priv
container_name: priv
privileged: true
#tty: true
stdin_open: true
network_mode: none