Debian Codegraph @

tests/Dockerfile

raw
1 FROM ubuntu:22.04
2
3 RUN rm /bin/sh && ln -s /bin/bash /bin/sh
4 RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
5
6 RUN apt-get -y update \
7 && apt-get -y install \
8 build-essential \
9 gcc \
10 apt-utils \
11 pkg-config \
12 software-properties-common \
13 apt-transport-https \
14 libssl-dev \
15 sudo \
16 bash \
17 curl \
18 wget \
19 tar \
20 git \
21 netcat \
22 libaspell-dev \
23 libhunspell-dev \
24 hunspell-en-us \
25 aspell-en \
26 shellcheck \
27 && apt-get -y update \
28 && apt-get -y upgrade \
29 && apt-get -y autoremove \
30 && apt-get -y autoclean
31
32 ENV GOROOT /usr/local/go
33 ENV GOPATH /go
34 ENV PATH ${GOPATH}/bin:${GOROOT}/bin:${PATH}
35 ENV GO_VERSION REPLACE_ME_GO_VERSION
36 ENV GO_DOWNLOAD_URL https://storage.googleapis.com/golang
37 RUN rm -rf ${GOROOT} \
38 && curl -s ${GO_DOWNLOAD_URL}/go${GO_VERSION}.linux-amd64.tar.gz | tar -v -C /usr/local/ -xz \
39 && mkdir -p ${GOPATH}/src ${GOPATH}/bin \
40 && go version
41
42 RUN mkdir -p ${GOPATH}/src/go.etcd.io/etcd
43 WORKDIR ${GOPATH}/src/go.etcd.io/etcd
44
45 ADD ./scripts/install-marker.sh /tmp/install-marker.sh
46
47 RUN /tmp/install-marker.sh amd64 \
48 && rm -f /tmp/install-marker.sh \
49 && curl -s https://codecov.io/bash >/codecov \
50 && chmod 700 /codecov