-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
51 lines (41 loc) · 1.48 KB
/
Dockerfile
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
49
50
51
FROM golang:1.14-alpine
RUN apk --no-cache add py3-pip make git zip
RUN pip3 install cloudformation-cli-go-plugin
COPY ./cfn-resources /build
WORKDIR /build
RUN cd project && \
make && \
cd bin && \
zip -X ../handler.zip ./handler && \
cd .. && \
cp mongodb-atlas-project.json schema.json && \
zip -X ../mongodb-atlas-project.zip ./handler.zip ./schema.json ./.rpdk-config
RUN cd cluster && \
make && \
cd bin && \
zip -X ../handler.zip ./handler && \
cd .. && \
cp mongodb-atlas-cluster.json schema.json && \
zip -X ../mongodb-atlas-cluster.zip ./handler.zip ./schema.json ./.rpdk-config
RUN cd database-user && \
make && \
cd bin && \
zip -X ../handler.zip ./handler && \
cd .. && \
cp mongodb-atlas-databaseuser.json schema.json && \
zip -X ../mongodb-atlas-databaseuser.zip ./handler.zip ./schema.json ./.rpdk-config
RUN cd project-ip-access-list && \
make && \
cd bin && \
zip -X ../handler.zip ./handler && \
cd .. && \
cp mongodb-atlas-projectipaccesslist.json schema.json && \
zip -X ../mongodb-atlas-projectipaccesslist.zip ./handler.zip ./schema.json ./.rpdk-config
RUN cd network-peering && \
make && \
cd bin && \
zip -X ../handler.zip ./handler && \
cd .. && \
cp mongodb-atlas-networkpeering.json schema.json && \
zip -X ../mongodb-atlas-networkpeering.zip ./handler.zip ./schema.json ./.rpdk-config
CMD mkdir -p /output/ && mv /build/*.zip /output/