@@ -54,7 +54,7 @@ touch /opt/conjure/src/lib.rs
5454PATH="$HOME/.cargo/bin:$PATH" make rust
5555EOF
5656
57- RUN PATH="$HOME/.cargo/bin:$PATH" make conjure-sim && mv conjure conjure-sim
57+ RUN PATH="$HOME/.cargo/bin:$PATH" make conjure-sim && mv bin/ conjure bin/ conjure-sim
5858RUN PATH="$HOME/.cargo/bin:$PATH" make conjure
5959
6060COPY go.* /opt/conjure/
@@ -66,87 +66,77 @@ RUN PATH="$HOME/.go/bin/:$PATH" make app
6666RUN PATH="$HOME/.go/bin/:$PATH" make registration-server
6767
6868# Add default configs and launch scripts
69- COPY sysconfig/ /opt/conjure/sysconfig
70- COPY scripts/ /opt/conjure/bin
69+ COPY sysconfig/conjure.conf /opt/conjure/sysconfig/
70+ COPY scripts/ /opt/conjure/scripts
7171
7272# add application as default entrypoint for dev reasons.
73- ENTRYPOINT /opt/conjure/application/application
73+ ENTRYPOINT /opt/conjure/scripts/start_application.sh
7474
7575
7676# ------------------------------------------------------------------------------
7777# Production image zbalance only
7878# ------------------------------------------------------------------------------
7979FROM base_pfring as conjure_zbalance
8080# Add default configs and launch scripts
81- COPY sysconfig/ /opt/conjure/sysconfig
82- COPY scripts/ /opt/conjure/bin
83-
84- ENTRYPOINT /opt/conjure/bin/start_zbalance_ipc.sh
81+ COPY sysconfig/conjure.conf /opt/conjure/sysconfig/
82+ COPY scripts/start_zbalance_ipc.sh /opt/conjure/scripts/
8583
84+ ENTRYPOINT /opt/conjure/scripts/start_zbalance_ipc.sh
8685
8786# ------------------------------------------------------------------------------
8887# Production image detector only (kind of, requires pfring)
8988# ------------------------------------------------------------------------------
9089FROM base_pfring as conjure_det
9190# Add default configs and launch scripts
92- COPY sysconfig/ /opt/conjure/sysconfig
93- COPY scripts/ /opt/conjure/bin
91+ COPY sysconfig/conjure.conf /opt/conjure/sysconfig
92+ COPY scripts/ /opt/conjure/scripts
9493
9594RUN apt update && apt install -yq libzmq3-dev
96- COPY --from=dev_img /opt/conjure/conjure /opt/conjure/bin/
97-
95+ COPY --from=dev_img /opt/conjure/bin/conjure /opt/conjure/bin/
9896
9997# ------------------------------------------------------------------------------
10098# Production image application only
10199# ------------------------------------------------------------------------------
102100FROM ubuntu:20.04 as conjure_app
103101# Add default configs and launch scripts
104- COPY sysconfig/ /opt/conjure/sysconfig
105- COPY scripts/ /opt/conjure/bin
106- COPY application/ /opt/conjure/application
102+ COPY sysconfig/conjure.conf /opt/conjure/sysconfig/
103+ COPY scripts/ /opt/conjure/scripts
107104
108105RUN apt update && apt install -yq libzmq3-dev
109- COPY --from=dev_img /opt/conjure/application/application /opt/conjure/bin/
110-
106+ COPY --from=dev_img /opt/conjure/bin/application /opt/conjure/bin/
111107
112108# ------------------------------------------------------------------------------
113109# Production image registration server only
114110# ------------------------------------------------------------------------------
115111FROM ubuntu:20.04 as conjure_reg
116112# Add default configs and launch scripts
117- COPY sysconfig/ /opt/conjure/sysconfig
118- COPY scripts/ /opt/conjure/bin
113+ COPY sysconfig/conjure.conf /opt/conjure/sysconfig/
114+ COPY scripts/ /opt/conjure/scripts/
119115
120116RUN apt update && apt install -yq libzmq3-dev
121- COPY --from=dev_img /opt/conjure/cmd/registration-server/registration-server /opt/conjure/bin/
122-
117+ COPY --from=dev_img /opt/conjure/bin/registration-server /opt/conjure/bin/
123118
124119# ------------------------------------------------------------------------------
125120# Simulation image (no pfring required)
126121# ------------------------------------------------------------------------------
127122FROM ubuntu:20.04 as conjure_sim
128123# Add default configs and launch scripts
129- COPY sysconfig/ /opt/conjure/sysconfig
130- COPY scripts/ /opt/conjure/bin
124+ COPY sysconfig/conjure.conf /opt/conjure/sysconfig/
125+ COPY scripts/ /opt/conjure/scripts/
131126
132127RUN apt update && apt install -yq libzmq3-dev
133- COPY --from=dev_img /opt/conjure/conjure-sim /opt/conjure/bin/conjure
134- COPY --from=dev_img /opt/conjure/cmd/registration-server/registration-server /opt/conjure/bin/
135- COPY --from=dev_img /opt/conjure/conjure /opt/conjure/bin/
136-
128+ COPY --from=dev_img /opt/conjure/bin/conjure-sim /opt/conjure/bin/conjure
129+ COPY --from=dev_img /opt/conjure/bin/registration-server /opt/conjure/bin/
137130
138131# ------------------------------------------------------------------------------
139132# Production image all (default)
140133# ------------------------------------------------------------------------------
141134FROM base_pfring as conjure
142135# Add default configs and launch scripts
143- COPY sysconfig/ /opt/conjure/sysconfig
144- COPY scripts/ /opt/conjure/bin
145- COPY application/ /opt/conjure/application
136+ COPY sysconfig/conjure.conf /opt/conjure/sysconfig/
137+ COPY scripts/ /opt/conjure/scripts/
146138
147139RUN apt update && apt install -yq libzmq3-dev
148- COPY --from=dev_img /opt/conjure/application/application /opt/conjure/bin/
149- COPY --from=dev_img /opt/conjure/cmd/registration-server/registration-server /opt/conjure/bin/
150- COPY --from=dev_img /opt/conjure/conjure /opt/conjure/bin/
140+ COPY --from=dev_img /opt/conjure/bin/ /opt/conjure/bin/
151141
152142# ENTRYPOINT /bin/bash
0 commit comments