blob: d4e4b26c5631e92bb2ee50dd15a52c35307e56cc [file] [log] [blame]
Joel Stanleya3544a12015-11-24 00:26:51 +10301#!/bin/bash
2
3Dockerfile=$(cat << EOF
4FROM ubuntu:15.10
5RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade -yy
6RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -yy make g++ gcc libsystemd-dev libc6-dev pkg-config
Patrick Williams06736b22021-04-13 20:35:05 -05007RUN groupadd -g ${GROUPS[0]} ${USER} && useradd -d ${HOME} -m -u ${UID} -g ${GROUPS[0]} ${USER}
Joel Stanleya3544a12015-11-24 00:26:51 +10308USER ${USER}
9ENV HOME ${HOME}
10RUN /bin/bash
11EOF
12)
13
14docker pull ubuntu:15.10
15docker build -t temp - <<< "${Dockerfile}"
16
17gcc --version
18
19docker run --cap-add=sys_admin --net=host --rm=true --user="${USER}" \
Patrick Williams46329282022-12-08 06:25:23 -060020 -w "${PWD}" -v "${HOME}":"${HOME}" -t temp make