mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 23:49:37 -05:00
2d8fcd9bf4
Co-authored-by: Malte Poll <mp@edgeless.systems> Co-authored-by: katexochen <katexochen@users.noreply.github.com> Co-authored-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Thomas Tendyck <tt@edgeless.systems> Co-authored-by: Benedict Schlueter <bs@edgeless.systems> Co-authored-by: leongross <leon.gross@rub.de> Co-authored-by: Moritz Eckert <m1gh7ym0@gmail.com>
38 lines
1.3 KiB
Docker
38 lines
1.3 KiB
Docker
FROM ubuntu:20.04
|
|
|
|
ENV DEBIAN_FRONTEND="noninteractive"
|
|
RUN apt-get update && apt-get install cmake iproute2 iputils-ping wget curl git libssl-dev -y
|
|
|
|
# Install kubectl
|
|
RUN curl -fsSLo /usr/local/bin/kubectl https://dl.k8s.io/release/v1.23.0/bin/linux/amd64/kubectl && chmod +x /usr/local/bin/kubectl
|
|
|
|
# Install Go
|
|
RUN wget https://go.dev/dl/go1.18.linux-amd64.tar.gz
|
|
RUN tar -C /usr/local -xzf go1.18.linux-amd64.tar.gz && rm go1.18.linux-amd64.tar.gz
|
|
ENV PATH ${PATH}:/usr/local/go/bin
|
|
|
|
# Install wireguard-tools
|
|
RUN git clone -b v1.0.20210914 --depth=1 https://git.zx2c4.com/wireguard-tools && make -C wireguard-tools/src -j`nproc` && make -C wireguard-tools/src install
|
|
|
|
# Install Rust
|
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
ENV PATH /root/.cargo/bin:${PATH}
|
|
|
|
# Setup CLI
|
|
RUN wg genkey | (umask 0077 && tee /privatekey) | wg pubkey > /publickey
|
|
RUN mkdir -p /root/.config/constellation && touch /root/.config/constellation/config.json
|
|
|
|
# Setup AWS config
|
|
RUN mkdir -p /root/.aws && echo "[default]\nregion = us-east-2" > /root/.aws/config && echo "[default]" >> /root/.aws/credentials
|
|
|
|
# Setup gcloud config
|
|
RUN mkdir -p /root/.config/gcloud
|
|
|
|
# Use local constellation state
|
|
# COPY . /constellation
|
|
# WORKDIR /constellation
|
|
# RUN mkdir build && cd build && cmake .. && make -j`nproc` cli
|
|
|
|
COPY ./test/ /
|
|
RUN chmod +x /initiateAWS.sh && chmod +x /initiategcloud.sh
|