Skip to content

Commit

Permalink
Merge pull request #125 from geo-knowledge-hub/master
Browse files Browse the repository at this point in the history
Update branch b-0.5
  • Loading branch information
M3nin0 authored May 15, 2024
2 parents 5e8c312 + 1663756 commit 8887fc1
Show file tree
Hide file tree
Showing 43 changed files with 9,885 additions and 7,879 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [18.x]

steps:
- name: Checkout
Expand All @@ -33,7 +33,8 @@ jobs:
- name: Install & Build
run: |
echo @geo-knowledge-hub:registry=http://127.0.0.1:4873 > ~/.npmrc
npm install
npm --legacy-peer-deps install
npm run build
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion docker/builder/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
build:
context: ${PWD}/docker/builder/services/verdaccio/
dockerfile: ${PWD}/docker/builder/services/verdaccio/Dockerfile
image: verdaccio-registry:5.10
image: verdaccio-registry:5.10.2
hostname: "verdaccio-registry"
container_name: "verdaccio-registry"
network_mode: bridge
Expand Down
2 changes: 1 addition & 1 deletion docker/builder/finish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
#
# 1. Stopping the services
#
docker-compose -f docker/builder/docker-compose.yml down
docker compose -f docker/builder/docker-compose.yml down
2 changes: 1 addition & 1 deletion docker/builder/services/verdaccio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

FROM node:12

RUN npm install -g verdaccio \
RUN npm install -g verdaccio@5.10.2 \
&& npm install -g verdaccio-auth-memory \
&& npm install -g verdaccio-memory \
&& npm install -g [email protected]
Expand Down
17 changes: 12 additions & 5 deletions docker/builder/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,35 @@ extract_from_quotes() {
#
# 1. Configuring the required services to build
#
docker-compose -f docker/builder/docker-compose.yml up -d
docker compose -f docker/builder/docker-compose.yml up -d

#
# 2. Authenticating on registry
#

# installing utility tool to auth
npm install -g npm-cli-login
npm install -g npm-cli-adduser

# authenticating
npm-cli-login \
npm-cli-adduser \
-u $VERDACCIO_USERNAME \
-p $VERDACCIO_PASSWORD \
-e $VERDACCIO_EMAIL \
-r $VERDACCIO_LOCAL_REGISTRY

echo @geo-knowledge-hub:registry=${VERDACCIO_DOCKER_REGISTRY} > ~/.npmrc

#
# 3. Publishing JavaScript dependencies from `geo-components-react` to verdaccio
#

# build required dependencies
npm install -g rimraf json rollup

# registering the local registry
echo "@geo-knowledge-hub:registry=${VERDACCIO_DOCKER_REGISTRY}" >> ~/.npmrc

# configuring npm to be compatible with Node 16
echo "legacy-peer-deps=true" >> ~/.npmrc

# extract the dependencies from the `geo-knowledge-hub`
# note: `@geo-knowledge-hub` is the scope defined to the `geo-knowledge-hub` packages
JAVASCRIPT_DEPENDENCIES_VERSION=`cat package.json | grep -e @geo-knowledge-hub/ | tail -n 2`
Expand Down
Loading

0 comments on commit 8887fc1

Please sign in to comment.