diff --git a/src/adservice/Dockerfile b/src/adservice/Dockerfile index db18af509c3..94fb0dcef44 100644 --- a/src/adservice/Dockerfile +++ b/src/adservice/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM openjdk:8-slim as builder +FROM eclipse-temurin:19@sha256:f3fbf1ad599d4b5dbdd7ceb55708d10cb9fafb08e094ef91e92aa63b520a232e as builder WORKDIR /app @@ -25,21 +25,16 @@ COPY . . RUN chmod +x gradlew RUN ./gradlew installDist -FROM openjdk:8-slim +FROM eclipse-temurin:19.0.1_10-jre-alpine@sha256:fabe27bd9db502d484a11d3f571c2f4ef7bba4a172527084d939935358fb06c4 + +RUN apk add --no-cache ca-certificates # Download Stackdriver Profiler Java agent -RUN apt-get -y update && apt-get install -qqy \ - wget \ - && rm -rf /var/lib/apt/lists/* RUN mkdir -p /opt/cprof && \ - wget -q -O- https://storage.googleapis.com/cloud-profiler/java/latest/profiler_java_agent.tar.gz \ + wget -q -O- https://storage.googleapis.com/cloud-profiler/java/latest/profiler_java_agent_alpine.tar.gz \ | tar xzv -C /opt/cprof && \ rm -rf profiler_java_agent.tar.gz -RUN GRPC_HEALTH_PROBE_VERSION=v0.3.6 && \ - wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \ - chmod +x /bin/grpc_health_probe - WORKDIR /app COPY --from=builder /app . diff --git a/src/currencyservice/Dockerfile b/src/currencyservice/Dockerfile index c45755e88c8..bb8417c07ee 100644 --- a/src/currencyservice/Dockerfile +++ b/src/currencyservice/Dockerfile @@ -19,7 +19,7 @@ FROM base as builder # Some packages (e.g. @google-cloud/profiler) require additional # deps for post-install scripts RUN apk add --update --no-cache \ - python \ + python3 \ make \ g++ diff --git a/src/frontend/static/img/products/bamboo-glass-jar.jpg b/src/frontend/static/img/products/bamboo-glass-jar.jpg new file mode 100644 index 00000000000..a897f19e1d5 Binary files /dev/null and b/src/frontend/static/img/products/bamboo-glass-jar.jpg differ diff --git a/src/frontend/static/img/products/candle-holder.jpg b/src/frontend/static/img/products/candle-holder.jpg new file mode 100644 index 00000000000..e3e2789c02e Binary files /dev/null and b/src/frontend/static/img/products/candle-holder.jpg differ diff --git a/src/frontend/static/img/products/hairdryer.jpg b/src/frontend/static/img/products/hairdryer.jpg new file mode 100644 index 00000000000..5b4db418952 Binary files /dev/null and b/src/frontend/static/img/products/hairdryer.jpg differ diff --git a/src/frontend/static/img/products/loafers.jpg b/src/frontend/static/img/products/loafers.jpg new file mode 100644 index 00000000000..f14c1966cf6 Binary files /dev/null and b/src/frontend/static/img/products/loafers.jpg differ diff --git a/src/frontend/static/img/products/mug.jpg b/src/frontend/static/img/products/mug.jpg new file mode 100644 index 00000000000..36420367fe6 Binary files /dev/null and b/src/frontend/static/img/products/mug.jpg differ diff --git a/src/frontend/static/img/products/salt-and-pepper-shakers.jpg b/src/frontend/static/img/products/salt-and-pepper-shakers.jpg new file mode 100644 index 00000000000..b81264e8c59 Binary files /dev/null and b/src/frontend/static/img/products/salt-and-pepper-shakers.jpg differ diff --git a/src/frontend/static/img/products/sunglasses.jpg b/src/frontend/static/img/products/sunglasses.jpg new file mode 100644 index 00000000000..f31b153f6c4 Binary files /dev/null and b/src/frontend/static/img/products/sunglasses.jpg differ diff --git a/src/frontend/static/img/products/tank-top.jpg b/src/frontend/static/img/products/tank-top.jpg new file mode 100644 index 00000000000..2e3baa09516 Binary files /dev/null and b/src/frontend/static/img/products/tank-top.jpg differ diff --git a/src/frontend/static/img/products/watch.jpg b/src/frontend/static/img/products/watch.jpg new file mode 100644 index 00000000000..71f0c11a520 Binary files /dev/null and b/src/frontend/static/img/products/watch.jpg differ diff --git a/src/frontend/templates/cart.html b/src/frontend/templates/cart.html index a03dd98ce17..5e910aceab6 100755 --- a/src/frontend/templates/cart.html +++ b/src/frontend/templates/cart.html @@ -14,162 +14,112 @@ limitations under the License. --> -{{ define "cart" }} - {{ template "header" . }} -
- - {{$.platform_name}} - -
-
-
-
- {{ if eq (len $.items) 0 }} -

Your shopping cart is empty!

-

Items you add to your shopping cart will appear here.

- Browse Products → - {{ else }} - -
-
-

{{ $.cart_size }} item - {{- if gt ($.cart_size) 1}}s{{end}} - in your cart

-
-
-
- - Keep browsing -
+{{ define "cart" }} {{ template "header" . }} +
+ + EMMA STORE + +
+
+
+
+ {{ if eq (len $.items) 0 }} +

Your shopping cart is empty!

+

Items you add to your shopping cart will appear here.

+ Browse Products → {{ else }} -
-
+
+
+

{{ $.cart_size }} item {{- if gt ($.cart_size) 1}}s{{end}} in your cart

+
+
+
+ + Keep browsing +
- {{ range $.items }} -
-
-
- - - -
-
-

{{ .Item.Name }}

-

SKU: #{{ .Item.Id }}

-
- Quantity: {{ .Quantity }}
- - {{ renderMoney .Price }} - -
-
+
+
+ +
+ {{ range $.items }} +
+
+ -
- {{ end }} -
-
-

Shipping Cost: {{ renderMoney .shipping_cost }}

- Total Cost: {{ renderMoney .total_cost }} +
+

{{ .Item.Name }}

+

SKU: #{{ .Item.Id }}

+
+ Quantity: {{ .Quantity }}
+ + {{ renderMoney .Price }} + +
+
+ {{ end }} -
-
-

Checkout

-
-
-
- - -
-
- - -
-
- - -
- -
-
-
- - -
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- -
-
-
+
+
+

Shipping Cost: {{ renderMoney .shipping_cost }}

+ Total Cost: {{ renderMoney .total_cost }}
- {{ end }} +
+ +
+
+ {{ end }}
- {{ if $.recommendations}} - {{ template "recommendations" $.recommendations }} - {{ end }} + + + + +
-
- {{ template "footer" . }} - {{ end }} + {{ if $.recommendations}} {{ template "recommendations" $.recommendations }} {{ end }} +
+ + + + + + + + + + + + +
+{{ template "footer" . }} {{ end }} \ No newline at end of file diff --git a/src/frontend/templates/error.html b/src/frontend/templates/error.html index 6cf38aabb11..47d580494dd 100755 --- a/src/frontend/templates/error.html +++ b/src/frontend/templates/error.html @@ -14,27 +14,24 @@ limitations under the License. --> -{{ define "error" }} - {{ template "header" . }} -
- - {{$.platform_name}} +{{ define "error" }} {{ template "header" . }} +
+ + EMMA STORE -
-
-
-
-

Uh, oh!

-

Something has failed. Below are some details for debugging.

+
+
+
+
+

Uh, oh!

+

Something has failed. Below are some details for debugging.

-

HTTP Status: {{.status_code}} {{.status}}

-
+            

HTTP Status: {{.status_code}} {{.status}}

+
                     {{- .error -}}
                 
-
-
+
+
- {{ template "footer" . }} - {{ end }} \ No newline at end of file +{{ template "footer" . }} {{ end }} \ No newline at end of file diff --git a/src/frontend/templates/footer.html b/src/frontend/templates/footer.html index 0ac6e771c53..ca3cbc4ad77 100755 --- a/src/frontend/templates/footer.html +++ b/src/frontend/templates/footer.html @@ -19,8 +19,8 @@
- -{{ end }} +{{ end }} \ No newline at end of file diff --git a/src/frontend/templates/home.html b/src/frontend/templates/home.html index 0281d6db2f7..8be2a769042 100755 --- a/src/frontend/templates/home.html +++ b/src/frontend/templates/home.html @@ -14,52 +14,48 @@ limitations under the License. --> -{{ define "home" }} - -{{ template "header" . }} +{{ define "home" }} {{ template "header" . }}
- - {{$.platform_name}} + + EMMA STORE
-
-
- Online Boutique -
-
+
+
+ Online Boutique +
+
-
-
-
- Hot products -
-
- {{ range $.products }} -
-
- - -
-
-
-
- {{ .Item.Name }} -
-
- +
+
+
+ Hot products +
+
+ {{ range $.products }} +
+
+ + +
+
+
+
+ {{ .Item.Name }} +
+
+ {{ renderMoney .Price }} -
+
+
+
+
+ {{ end }}
-
- {{ end }} -
-
-{{ template "footer" . }} - -{{ end }} \ No newline at end of file +{{ template "footer" . }} {{ end }} \ No newline at end of file diff --git a/src/frontend/templates/order.html b/src/frontend/templates/order.html index ecceb00594c..75cbb3b3f37 100755 --- a/src/frontend/templates/order.html +++ b/src/frontend/templates/order.html @@ -14,44 +14,40 @@ limitations under the License. --> -{{ define "order" }} - {{ template "header" . }} -
- - {{$.platform_name}} +{{ define "order" }} {{ template "header" . }} +
+ + EMMA STORE -
-
-
-
-
-
- -

- Your order is complete! -

-

Order Confirmation ID

-

{{.order.OrderId}}

-

Shipping Tracking ID

-

{{.order.ShippingTrackingId}}

-

Shipping Cost

-

{{renderMoney .order.ShippingCost}}

-

Total Paid

-

{{renderMoney .total_paid}}

-
+
+
+
+
+
+
+ +

+ Your order is complete! +

+

Order Confirmation ID

+

{{.order.OrderId}}

+

Shipping Tracking ID

+

{{.order.ShippingTrackingId}}

+

Shipping Cost

+

{{renderMoney .order.ShippingCost}}

+

Total Paid

+

{{renderMoney .total_paid}}

-
-
- + +
+
+ - {{ if $.recommendations }} - {{ template "recommendations" $.recommendations }} - {{ end }}
-
+ {{ if $.recommendations }} {{ template "recommendations" $.recommendations }} {{ end }} +
+
- {{ template "footer" . }} - {{ end }} +{{ template "footer" . }} {{ end }} \ No newline at end of file diff --git a/src/frontend/templates/product.html b/src/frontend/templates/product.html index ce589183716..88bb17a0d02 100755 --- a/src/frontend/templates/product.html +++ b/src/frontend/templates/product.html @@ -14,39 +14,38 @@ limitations under the License. --> -{{ define "product" }} -{{ template "header" . }} +{{ define "product" }} {{ template "header" . }}
- - {{$.platform_name}} + + EMMA STORE
-
-
-
- -
-
-
-

{{$.product.Item.Name}}

+
+
+
+ +
+
+
+

{{$.product.Item.Name}}

-

- {{ renderMoney $.product.Price}} -

-
-
Product Description:
- {{$.product.Item.Description}} -
+

+ {{ renderMoney $.product.Price}} +

+
+
Product Description:
+ {{$.product.Item.Description}} +
-
- -
-
- -
- +
+
+ +
+ - + +
+ +
-
-
-
-
- {{ if $.recommendations}} - {{ template "recommendations" $.recommendations }} - {{ end }} - - {{ with $.ad }}{{ template "text_ad" . }}{{ end}} +
+ {{ if $.recommendations}} {{ template "recommendations" $.recommendations }} {{ end }} {{ with $.ad }}{{ template "text_ad" . }}{{ end}} -
+
-{{ template "footer" . }} -{{ end }} \ No newline at end of file +{{ template "footer" . }} {{ end }} \ No newline at end of file diff --git a/src/paymentservice/Dockerfile b/src/paymentservice/Dockerfile index bc39a50dd66..44c7d1da3d9 100644 --- a/src/paymentservice/Dockerfile +++ b/src/paymentservice/Dockerfile @@ -19,7 +19,7 @@ FROM base as builder # Some packages (e.g. @google-cloud/profiler) require additional # deps for post-install scripts RUN apk add --update --no-cache \ - python \ + python3 \ make \ g++