diff options
Diffstat (limited to 'packages/apex-pdp-package-full/src/main/package/examples/docker')
9 files changed, 300 insertions, 0 deletions
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile new file mode 100644 index 000000000..8d698c25a --- /dev/null +++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile @@ -0,0 +1,32 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +# +# Docker file to build an image the MyFirstPolicyFile2StdoutJsonEvent example +# +# apex/myfirstpolicyfile2stdoutjsonevent:1 + +FROM apex/base +MAINTAINER John Keeney John.Keeney@ericsson.com + +EXPOSE 12345 +USER apexuser:apexuser +ENTRYPOINT ["apexEngine.sh"] +CMD ["-c", "examples/config/MyFirstPolicy/1/MyFirstPolicyConfigFile2StdoutJsonEvent.json"] diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile new file mode 100644 index 000000000..afa2691ae --- /dev/null +++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile @@ -0,0 +1,32 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +# +# Docker file to build an image the MyFirstPolicyStdin2StdoutJsonEvent example +# +# apex/myfirstpolicystdin2stdoutjsonevent:1 + +FROM apex/base +MAINTAINER John Keeney John.Keeney@ericsson.com + +EXPOSE 12345 +USER apexuser:apexuser +ENTRYPOINT ["apexEngine.sh"] +CMD ["-c", "examples/config/MyFirstPolicy/1/MyFirstPolicyConfigStdin2StdoutJsonEvent.json"] diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile new file mode 100644 index 000000000..88713d998 --- /dev/null +++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile @@ -0,0 +1,32 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +# +# Docker file to build an image the MyFirstPolicyFile2StdoutJsonEvent example +# +# apex/myfirstpolicyfile2stdoutjsonevent:2 + +FROM apex/base +MAINTAINER John Keeney John.Keeney@ericsson.com + +EXPOSE 12345 +USER apexuser:apexuser +ENTRYPOINT ["apexEngine.sh"] +CMD ["-c", "examples/config/MyFirstPolicy/2/MyFirstPolicyConfigFile2StdoutJsonEvent.json"] diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile new file mode 100644 index 000000000..9a62b0eed --- /dev/null +++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile @@ -0,0 +1,32 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +# +# Docker file to build an image the MyFirstPolicyStdin2StdoutJsonEvent example +# +# apex/myfirstpolicystdin2stdoutjsonevent:2 + +FROM apex/base +MAINTAINER John Keeney John.Keeney@ericsson.com + +EXPOSE 12345 +USER apexuser:apexuser +ENTRYPOINT ["apexEngine.sh"] +CMD ["-c", "examples/config/MyFirstPolicy/2/MyFirstPolicyConfigStdin2StdoutJsonEvent.json"] diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventJavascript.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventJavascript.Dockerfile new file mode 100644 index 000000000..52c75e471 --- /dev/null +++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventJavascript.Dockerfile @@ -0,0 +1,31 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +# +# Docker file to build an image the File2StdoutJsonEventJavascript example +# +# apex/file2stdoutjsoneventjavascript +FROM apex/base +MAINTAINER John Keeney John.Keeney@ericsson.com + +EXPOSE 12345 +USER apexuser:apexuser +ENTRYPOINT ["apexEngine.sh"] +CMD ["-c", "examples/config/SampleDomain/File2StdoutJsonEventJavascript.json"] diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventMvel.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventMvel.Dockerfile new file mode 100644 index 000000000..8d7b0af53 --- /dev/null +++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventMvel.Dockerfile @@ -0,0 +1,31 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +# +# Docker file to build an image the File2StdoutJsonEventMVEL example +# +# apex/file2stdoutjsoneventmvel +FROM apex/base +MAINTAINER John Keeney John.Keeney@ericsson.com + +EXPOSE 12345 +USER apexuser:apexuser +ENTRYPOINT ["apexEngine.sh"] +CMD ["-c", "examples/config/SampleDomain/File2StdoutJsonEventMVEL.json"] diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventJavascript.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventJavascript.Dockerfile new file mode 100644 index 000000000..385092398 --- /dev/null +++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventJavascript.Dockerfile @@ -0,0 +1,31 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +# +# Docker file to build an image the Stdin2StdoutJsonEventJavascript example +# +# apex/stdin2stdoutjsoneventjavascript +FROM apex/base +MAINTAINER John Keeney John.Keeney@ericsson.com + +EXPOSE 12345 +USER apexuser:apexuser +ENTRYPOINT ["apexEngine.sh"] +CMD ["-c", "examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json"] diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventMvel.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventMvel.Dockerfile new file mode 100644 index 000000000..d727a2dc4 --- /dev/null +++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventMvel.Dockerfile @@ -0,0 +1,31 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +# +# Docker file to build an image the Stdin2StdoutJsonEventMVEL example +# +# apex/stdin2stdoutjsoneventmvel +FROM apex/base +MAINTAINER John Keeney John.Keeney@ericsson.com + +EXPOSE 12345 +USER apexuser:apexuser +ENTRYPOINT ["apexEngine.sh"] +CMD ["-c", "examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json"] diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/base/base.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/base/base.Dockerfile new file mode 100644 index 000000000..4872f5546 --- /dev/null +++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/base/base.Dockerfile @@ -0,0 +1,48 @@ +#------------------------------------------------------------------------------- +# ============LICENSE_START======================================================= +# Copyright (C) 2016-2018 Ericsson. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= +#------------------------------------------------------------------------------- + +# +# Docker file to build an image that runs APEX on Java 8 in Ubuntu +# +# apex/base:0.6.0 +FROM ubuntu:16.04 +MAINTAINER John Keeney John.Keeney@ericsson.com + +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get install -y software-properties-common && \ + add-apt-repository ppa:webupd8team/java -y && \ + apt-get update && \ + echo oracle-javax8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \ + apt-get install -y oracle-java8-installer && \ + rm -rf /var/cache/oracle-jdk8-installer && \ + apt-get clean + +RUN mkdir /packages +COPY apex-pdp-package-full-2.0.0-SNAPSHOT.deb /packages +RUN dpkg -i packages/apex-pdp-package-full-2.0.0-SNAPSHOT.deb && \ + rm /packages/apex-pdp-package-full-2.0.0-SNAPSHOT.deb + +ENV PATH /opt/ericsson/apex/apex/bin:$PATH + +RUN apt-get clean + +RUN chown -R apexuser:apexuser /home/apexuser/* +WORKDIR /home/apexuser |