Loading deploy/tfs.sh +1 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. set -e ######################################################################################################################## # Read deployment settings Loading manifests/teservice.yaml +4 −0 Original line number Diff line number Diff line Loading @@ -73,3 +73,7 @@ spec: protocol: TCP port: 11010 targetPort: 11010 - name: pcep protocol: TCP port: 4189 targetPort: 4189 src/te/Dockerfile +2 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ # Build stage 0 FROM erlang:24.3-alpine RUN apk add --no-cache bash RUN apk add --no-cache bash git RUN mkdir /var/teraflow WORKDIR /var/teraflow Loading @@ -42,6 +42,7 @@ COPY --from=0 /var/teraflow/src/te/_build/prod/rel/tfte /tfte # Expose relevant ports EXPOSE 11010 EXPOSE 4189 ARG ERLANG_LOGGER_LEVEL_DEFAULT=debug ARG ERLANG_COOKIE_DEFAULT=tfte-unsafe-cookie Loading src/te/apps/epce/src/epce.app.src 0 → 100644 +16 −0 Original line number Diff line number Diff line {application, epce, [{description, "An Erlang PCE"}, {vsn, "0.1.0"}, {registered, []}, {mod, {epce_app, []}}, {applications, [kernel, stdlib, pcep_server ]}, {env,[]}, {modules, []}, {licenses, ["Apache 2.0"]}, {links, []} ]}. src/te/apps/epce/src/epce_app.erl 0 → 100644 +18 −0 Original line number Diff line number Diff line -module(epce_app). -behaviour(application). %%% EXPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Behaviour application functions -export([start/2, stop/1]). %%% BEHAVIOUR application FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% start(_StartType, _StartArgs) -> epce_sup:start_link(). stop(_State) -> ok. Loading
deploy/tfs.sh +1 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. set -e ######################################################################################################################## # Read deployment settings Loading
manifests/teservice.yaml +4 −0 Original line number Diff line number Diff line Loading @@ -73,3 +73,7 @@ spec: protocol: TCP port: 11010 targetPort: 11010 - name: pcep protocol: TCP port: 4189 targetPort: 4189
src/te/Dockerfile +2 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ # Build stage 0 FROM erlang:24.3-alpine RUN apk add --no-cache bash RUN apk add --no-cache bash git RUN mkdir /var/teraflow WORKDIR /var/teraflow Loading @@ -42,6 +42,7 @@ COPY --from=0 /var/teraflow/src/te/_build/prod/rel/tfte /tfte # Expose relevant ports EXPOSE 11010 EXPOSE 4189 ARG ERLANG_LOGGER_LEVEL_DEFAULT=debug ARG ERLANG_COOKIE_DEFAULT=tfte-unsafe-cookie Loading
src/te/apps/epce/src/epce.app.src 0 → 100644 +16 −0 Original line number Diff line number Diff line {application, epce, [{description, "An Erlang PCE"}, {vsn, "0.1.0"}, {registered, []}, {mod, {epce_app, []}}, {applications, [kernel, stdlib, pcep_server ]}, {env,[]}, {modules, []}, {licenses, ["Apache 2.0"]}, {links, []} ]}.
src/te/apps/epce/src/epce_app.erl 0 → 100644 +18 −0 Original line number Diff line number Diff line -module(epce_app). -behaviour(application). %%% EXPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Behaviour application functions -export([start/2, stop/1]). %%% BEHAVIOUR application FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% start(_StartType, _StartArgs) -> epce_sup:start_link(). stop(_State) -> ok.