Skip to content

Commit

Permalink
Add arlas-fam-wui to release script
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedHamouGisaia committed May 14, 2024
1 parent b8f5142 commit 30c3a40
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
12 changes: 6 additions & 6 deletions file-explorer/Dockerfile → Dockerfile-arlas-fam-wui
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
FROM node:16.19.0 as builder
WORKDIR /app

COPY ./package.json ./
COPY ./package-lock.json ./
COPY ./file-explorer/package.json ./
COPY ./file-explorer/package-lock.json ./

## installing necessary libraries
RUN npm install

COPY ./scripts/start.sh ./
COPY ./file-explorer/scripts/start.sh ./

COPY . .
COPY ./file-explorer .

## Build the angular app in production mode
RUN npm run build

### STAGE 2: Setup ###

FROM nginx:1.23.3-alpine
FROM nginx:1.25.3-alpine3.18-slim
ARG version="latest"

LABEL io.arlas.wui-fam.version=${version}
Expand All @@ -29,7 +29,7 @@ LABEL description="This container builds and serves the FAM-wui app"
RUN apk add --update bash jq netcat-openbsd curl && rm -rf /var/cache/apk/*

## Copy our default nginx config
COPY nginx/default.conf /etc/nginx/conf.d/
COPY ./file-explorer/nginx/default.conf /etc/nginx/conf.d/

## Remove default nginx website
RUN rm -rf /usr/share/nginx/html/*
Expand Down
4 changes: 2 additions & 2 deletions file-explorer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions file-explorer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "file-explorer",
"version": "0.0.0",
"version": "0.3.2",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down Expand Up @@ -72,4 +72,4 @@
"traverse": "0.6.8"
}
}
}
}
13 changes: 13 additions & 0 deletions release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
VERSION=$1
echo "Build and releas the image with version ${VERSION}"

prepare_arlas_fam_wui (){
cd file-explorer
npm --no-git-tag-version version ${VERSION}
cd ../
}

build_and_publish_docker (){
IMAGE=$1
echo "Building the image $IMAGE"
Expand All @@ -18,6 +24,10 @@ build_and_publish_docker (){

build_and_publish_docker fam

#--------------- FAM WUI ----------------
prepare_arlas_fam_wui
build_and_publish_docker arlas-fam-wui

#--------------- APROC ----------------
build_and_publish_docker aproc-proc

Expand All @@ -40,6 +50,9 @@ python3 airs/core/models/utils.py > docs/model/model.schema.json
jsonschema2md -d docs/model/ -o docs/model/
./release/publish.sh $VERSION

# FILE EXPLORER
git add file-explorer/package.json
git add file-explorer/src/package.json
# DOCUMENTATION
git add docs/
git commit -m "update docs for version "$VERSION
Expand Down

0 comments on commit 30c3a40

Please sign in to comment.