-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.stub
48 lines (39 loc) · 1.56 KB
/
Dockerfile.stub
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM ubuntu:20.04
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install curl git build-essential python3 python3-pip python3-dev cmake software-properties-common
RUN pip3 install requests
RUN pip3 install click
RUN pip3 install manifest-tool
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install emacs-nox
RUN mkdir /builder
WORKDIR /builder
RUN mkdir -p /out
ADD use-builder.sh /builder/
RUN mkdir -p /work/mbed-cloud-client-example
ADD tmp/work /work/
RUN cd /work/mbed-cloud-client-example && python3 pal-platform/pal-platform.py deploy --target=Yocto_Generic_YoctoLinux_mbedtls generate
RUN cd /work && git clone https://github.com/IzumaNetworks/mbed-cli && pip3 install /work/mbed-cli
RUN add-apt-repository -y ppa:mercurial-ppa/releases && apt-get update; pip3 install mercurial --upgrade; exit 0
# unnecessary library
RUN cd /work/mbed-cloud-client-example && rm -f mbed-os.lib
RUN cd /work/mbed-cloud-client-example && mbed deploy
RUN cp -a /work/mbed-cloud-client-example /work/mbed-cloud-client-example.orig
#ADD . /tmp/app
#WORKDIR /tmp/app
#RUN go build -v -o main .
#CMD ["/tmp/app/main"]
#EXPOSE 3000
#RUN apt-get update
#RUN apt-get -y install build-essential
# ADD webhook /tmp/webhook
# WORKDIR /tmp/webhook
# RUN go get -d -v -t ./... && go build
# ADD pipesend /tmp/pipesend
# WORKDIR /tmp/pipesend
# RUN go build -o pipesend main.go
# FROM alpine:3.16.2
# COPY --from=build /tmp/webhook/webhook /root
# COPY --from=build /tmp/pipesend/pipesend /root
# RUN mkdir /var/webhook
# CMD /root/webhook -hooks /var/webhook/hooks.json -verbose
# EXPOSE 9000