Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
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