Skip to content

Commit

Permalink
Merge pull request #7 from oracle/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
junior authored Sep 14, 2019
2 parents 03c61cd + df4c182 commit f2d8aa0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
29 changes: 18 additions & 11 deletions deploy/basic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

##### Oracle Instant Client version
# Oracle Instant Client version
ARG oracleClientVersion=19.3

##### Node version
# Node version
ARG nodeVersion=10

###############################
Expand Down Expand Up @@ -90,7 +90,7 @@ RUN GO111MODULE=on GOARCH=amd64 GOOS=linux \
# Everything needed #
###############################

##### Base image with Oracle Instant Client Basic Lite
# Base image with Oracle Instant Client Basic Lite
FROM oraclelinux:7-slim AS base
ARG oracleClientVersion
ARG nodeVersion
Expand All @@ -111,7 +111,12 @@ RUN chmod +x /entrypoint.sh

# ----- Base Image ------ #

##### Runtime Image
###############################
# ----- Runtime Image ----- #
# runtime app and stack #
###############################

# Runtime Image
FROM base
ARG oracleClientVersion
ARG nodeVersion
Expand All @@ -128,16 +133,18 @@ COPY --from=catalogue-builder /catalogue /app/catalogue/catalogue
RUN mkdir /package && GZIP=-9 tar cvzf /package/mushop-basic.tar.gz /app /images

# Create ORM package
COPY deploy/basic/terraform /lite
COPY src/catalogue/dbdata/atp_mushop_catalogue.sql /lite/scripts
COPY deploy/basic/httpd.conf /lite/scripts
COPY deploy/basic/entrypoint.sh /lite/scripts
RUN cp /package/mushop-basic.tar.gz /lite/scripts && \
cd /lite && zip -r /package/mushop-basic.zip .
COPY deploy/basic/terraform /basic
COPY src/catalogue/dbdata/atp_mushop_catalogue.sql /basic/scripts
COPY deploy/basic/httpd.conf /basic/scripts
COPY deploy/basic/entrypoint.sh /basic/scripts
RUN cp /package/mushop-basic.tar.gz /basic/scripts && \
cd /basic && zip -r /package/mushop-basic-stack.zip .

VOLUME ["/usr/lib/oracle/${oracleClientVersion}/client64/lib/network/admin/"]
VOLUME ["/transfer/"]
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 80
EXPOSE 3000
EXPOSE 3005
EXPOSE 3005

# ----- Base Image ------ #
2 changes: 1 addition & 1 deletion deploy/basic/terraform/atp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "oci_database_autonomous_database" "mushop_autonomous_database" {
data_storage_size_in_tbs = 1
db_name = "${var.database_name}${random_id.mushop_id.dec}"
freeform_tags = "${local.common_tags}"

is_free_tier = true

#Optional

Expand Down

0 comments on commit f2d8aa0

Please sign in to comment.