Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
bastion/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
48 lines (38 sloc)
1.11 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:22.04 | |
#-- Set the specific version of bastion to install. | |
ENV BASTION bastion-q24A034X | |
RUN apt update && apt upgrade -y | |
RUN mkdir /SCRATCH && \ | |
mkdir /DATA && \ | |
mkdir /LOG && \ | |
mkdir /BFD && \ | |
mkdir /CONF && \ | |
mkdir /root/.private && \ | |
mkdir /root/.bastion && \ | |
mkdir /root/.ssh && \ | |
mkdir /etc/bastion | |
#-- Install the RCAC supplied hsi package | |
#-- Note, that the RCAC .deb package has an undeclared dependency on libedit2 | |
RUN apt install -y libedit2 | |
COPY hsi-htar-9.3.0-rcac1-amd64.deb . | |
RUN dpkg --install hsi-htar-9.3.0-rcac1-amd64.deb | |
RUN rm hsi-htar-9.3.0-rcac1-amd64.deb | |
#-- Python dependencies for bastion | |
RUN apt install -y \ | |
python3 \ | |
python3-yaml \ | |
python3-ruamel.yaml \ | |
python-is-python3 | |
#-- Install bastion from local tar file. | |
WORKDIR /opt | |
COPY ${BASTION}.tar . | |
RUN tar xvf ${BASTION}.tar | |
RUN ln -s /opt/${BASTION} /opt/bastion | |
RUN rm ${BASTION}.tar | |
WORKDIR / | |
COPY CONF/conf-000-dockerized.yaml /etc/bastion | |
COPY CONF/ssh_config /root/.ssh/config | |
#-- Useful stuff for debugging, but can probably be taken out of distribution. | |
RUN apt install -y \ | |
nano \ | |
git | |