Skip to content

Commit

Permalink
Merge pull request #15 from jovijovi/dev-ci
Browse files Browse the repository at this point in the history
Release v0.9.1
  • Loading branch information
jovijovi authored Sep 30, 2022
2 parents 4075a99 + 9e3b4a7 commit 1e60290
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Changelog

## [v0.9.0](https://github.com/jovijovi/ether-goblin/releases/tag/v0.8.6)
## [v0.9.1](https://github.com/jovijovi/ether-goblin/releases/tag/v0.9.1)

Fixes:

- (watchdog): error response in init()

Build:

- Replace alpine by slim. Ref: <https://github.com/NomicFoundation/hardhat/issues/3195>

## [v0.9.0](https://github.com/jovijovi/ether-goblin/releases/tag/v0.9.0)

Features:

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ APP_NAME:=ether-goblin
HUB:=$(if $(HUB),$(HUB),some_docker_image_repo)
OS:=linux
NODE_VER=16.17
IMAGE_TAG:=slim
TS_VER=$(shell tsc -v)
ALPINE_VER:=3.16

prj_dir:=$(shell pwd -L)
git_br:=$(shell git -C "${prj_dir}" rev-parse --abbrev-ref HEAD | grep -v HEAD || git describe --tags || git -C "${prj_dir}" rev-parse --short HEAD)
Expand Down Expand Up @@ -48,7 +48,7 @@ build: build-prepare
docker:
@echo "[MAKEFILE] Building docker image..."
@echo $(VERSION_INFO) > $(prj_dir)/git.json
docker build --force-rm -f $(DOCKER_FILE) --build-arg NODE_VER=$(NODE_VER) -t $(APP_NAME):$(VER) .
docker build --force-rm -f $(DOCKER_FILE) --build-arg NODE_VER=$(NODE_VER) --build-arg IMAGE_TAG=$(IMAGE_TAG) -t $(APP_NAME):$(VER) .
docker tag $(APP_NAME):$(VER) $(APP_NAME):latest
docker images|grep $(APP_NAME)
@echo "[MAKEFILE] Build docker image done"
Expand Down
2 changes: 1 addition & 1 deletion devenv/app.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.1'

services:
pedrojs:
ether-goblin:
container_name: devenv_ether_goblin
image: ether-goblin:latest
restart: always
Expand Down
7 changes: 4 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG NODE_VER
ARG IMAGE_TAG

FROM node:${NODE_VER}-alpine as builder
FROM node:${NODE_VER}-${IMAGE_TAG} as builder
MAINTAINER pedro

ADD conf /opt/app_src/conf
Expand All @@ -18,9 +19,9 @@ WORKDIR /opt/app_src
RUN yarn install --frozen-lockfile \
&& yarn build

FROM node:${NODE_VER}-alpine as runtime
FROM node:${NODE_VER}-${IMAGE_TAG} as runtime

RUN apk add --no-cache bash
RUN apt-get update && apt-get install bash

COPY --from=builder /opt/app_src/dist /opt/app
COPY --from=builder /opt/app_src/node_modules /opt/app/node_modules
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ether-goblin",
"version": "0.9.0",
"version": "0.9.1",
"description": "A microservice for the Ethereum ecosystem.",
"author": "jovijovi <mageyul@hotmail.com>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/watchdog/watchdog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ function init(): [customConfig.WatchdogConfig, boolean] {
const conf = customConfig.GetWatchdog();
if (!conf) {
log.RequestId().info('No watchdog configuration, skipped.');
return;
return [undefined, false];
} else if (!conf.enable) {
log.RequestId().info('Watchdog disabled.');
return;
return [undefined, false];
}

log.RequestId().info("Watchdog config=\n%s", JSON.stringify(conf, undefined, 4));
Expand Down

0 comments on commit 1e60290

Please sign in to comment.