From 8b5a4e9a43b6ae98d985402bc8f6e16ce098d828 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Tue, 1 Oct 2024 15:18:31 -0400 Subject: [PATCH 1/2] ci: add arm support --- Dockerfile | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3f8c9e4..c357200 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,20 +3,28 @@ # Use an official Ubuntu base image with platform support FROM --platform=$TARGETPLATFORM ubuntu:20.04 +# Set environment variables for non-interactive installs +ENV DEBIAN_FRONTEND=noninteractive + # Set the working directory inside the container WORKDIR /app -# Install curl, build-essential, and other dependencies +# Set build arguments for architecture +ARG TARGETARCH + +# Preconfigure tzdata to prevent interactive prompt +RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \ + echo "Etc/UTC" > /etc/timezone + +# Install curl, build-essential, and other dependencies, including tzdata RUN apt-get update && apt-get install -y \ curl \ build-essential \ libsecret-1-dev \ pkg-config \ + tzdata \ && rm -rf /var/lib/apt/lists/* -# Set build arguments for architecture -ARG TARGETARCH - # Install Node.js 20 RUN NODE_VERSION=20.8.0 \ && if [ "$TARGETARCH" = "arm64" ]; then \ @@ -46,14 +54,14 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then \ echo "Unsupported architecture: $TARGETARCH"; exit 1; \ fi +# Build the application RUN npm run build # Rebuild any native modules for the current environment RUN npm rebuild - # Expose the port the app runs on -EXPOSE 4159 +EXPOSE 4160 # Run the application CMD ["node", "dist/cluster.js"] From fd8cd0b563e6bfc89e694138a67f07a468967cf7 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Tue, 1 Oct 2024 15:18:54 -0400 Subject: [PATCH 2/2] chore(release): 0.0.1-alpha.47 --- CHANGELOG.md | 2 ++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 582061d..5184185 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.47](https://github.com/DIG-Network/dig-incentive-server/compare/v0.0.1-alpha.46...v0.0.1-alpha.47) (2024-10-01) + ### [0.0.1-alpha.46](https://github.com/DIG-Network/dig-incentive-server/compare/v0.0.1-alpha.45...v0.0.1-alpha.46) (2024-10-01) ### [0.0.1-alpha.45](https://github.com/DIG-Network/dig-incentive-server/compare/v0.0.1-alpha.44...v0.0.1-alpha.45) (2024-10-01) diff --git a/package-lock.json b/package-lock.json index f137a48..8535ab6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dig-incentive-server", - "version": "0.0.1-alpha.46", + "version": "0.0.1-alpha.47", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dig-incentive-server", - "version": "0.0.1-alpha.46", + "version": "0.0.1-alpha.47", "license": "ISC", "dependencies": { "@dignetwork/dig-sdk": "^0.0.1-alpha.104", diff --git a/package.json b/package.json index d8ab917..7cfaf9d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dig-incentive-server", - "version": "0.0.1-alpha.46", + "version": "0.0.1-alpha.47", "description": "", "type": "commonjs", "main": "./dist/index.js",