Skip to content

Commit

Permalink
🔖 pre-release 1.0.0-dev.1
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed Feb 7, 2021
1 parent ee02264 commit 83f1cda
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ jobs:
key: ${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
- run: |
cd web-app/
sed -i "s/1.0.0-dev.0/$BUILD_VERSION/1" package.json
sed -i "s/1.0.0-dev.1/$BUILD_VERSION/1" package.json
npm config set registry $NPM_REGISTRY_URL
echo '_auth = ${{ secrets.JFROG_RTFACT_NPM_AUTH }}' > ~/.npmrc
echo 'email = prince.chrismc@gmail.com' >> ~/.npmrc
Expand Down
2 changes: 1 addition & 1 deletion api/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: "3.0.0"
info:
title: User Management API
version: "1.0.0-dev.0"
version: "1.0.0-dev.1"
description: >-
A Simple API for creating, editing, and deleting
users. The goal here is to offer minimal flexability
Expand Down
2 changes: 1 addition & 1 deletion backend/conan.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"graph_lock": {
"nodes": {
"0": {
"ref": "user-management/1.0.0-dev.0",
"ref": "user-management/1.0.0-dev.1",
"requires": [
"1",
"3",
Expand Down
4 changes: 2 additions & 2 deletions backend/include/um/user_management.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// MIT License
// Copyright (c) 2020 Christopher McArthur
// Version: 1.0.0-dev.0
// Version: 1.0.0-dev.1

#ifndef UM_USER_MANAGEMENT_HPP_
#define UM_USER_MANAGEMENT_HPP_
Expand All @@ -15,7 +15,7 @@
#include "schemas.hpp"

namespace user_management {
constexpr auto version = "1.0.0-dev.0";
constexpr auto version = "1.0.0-dev.1";

using json = api::json;
using user_key = size_t;
Expand Down
14 changes: 7 additions & 7 deletions backend/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ cmake .. -DRUN_TIDY=ON
To update the top level `conan.lock` run:

```sh
conan lock create conanfile.py --version=1.0.0-dev.0 --base --update
conan lock create conanfile.py --version=1.0.0-dev.1 --base --update
```

```sh
Expand All @@ -77,37 +77,37 @@ cd build && conan install .. -s build_type=Debug --lockfile=../conan.lock
### Lock Dependency graph

```sh
conan lock create conanfile.py --version 1.0.0-dev.0+`git rev-parse --short HEAD` --lockfile=conan.lock --lockfile-out=locks/conan.lock
conan lock create conanfile.py --version 1.0.0-dev.1+`git rev-parse --short HEAD` --lockfile=conan.lock --lockfile-out=locks/conan.lock
```

### Package Back-end

```sh
conan create conanfile.py 1.0.0-dev.0+`git rev-parse --short HEAD`@ --lockfile locks/conan.lock
conan create conanfile.py 1.0.0-dev.1+`git rev-parse --short HEAD`@ --lockfile locks/conan.lock
```

### Install Application

> :notebook: This step requires the [packing](#package) to be completed first
```sh
conan install user-managment/1.0.0-dev.0+`git rev-parse --short HEAD` --lockfile locks/conan.lock
conan install user-managment/1.0.0-dev.1+`git rev-parse --short HEAD` --lockfile locks/conan.lock
```

### Build Docker Image

```sh
docker build . -f Dockerfile -t user-managment-backend:1.0.0-dev.0 # Docker does not support SemVer build information
docker build . -f Dockerfile -t user-managment-backend:1.0.0-dev.1 # Docker does not support SemVer build information
```

## Run Container

```sh
docker run --rm -d -p 8443:8443 -v "$(pwd):/dist" user-managment-backend:1.0.0-dev.0
docker run --rm -d -p 8443:8443 -v "$(pwd):/dist" user-managment-backend:1.0.0-dev.1
```

> :notebook: By default the back-end image is setup for HTTPS for unsecure transport use the following
```sh
docker run --rm -d -p 8080:8080 -v "$(pwd):/dist" user-managment-backend:1.0.0-dev.0 dist -a "0.0.0.0" -p 8080 -n 4
docker run --rm -d -p 8080:8080 -v "$(pwd):/dist" user-managment-backend:1.0.0-dev.1 dist -a "0.0.0.0" -p 8080 -n 4
```
60 changes: 51 additions & 9 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,48 @@

All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).

## [v1.0.0-dev.1](https://github.com/prince-chrismc/user-management/tree/v1.0.0-dev.1) (2021-02-07)

[Full Changelog](https://github.com/prince-chrismc/user-management/compare/v1.0.0-dev.0...v1.0.0-dev.1)

**API updates:**

- Conditional API requests - rfc7232 [\#10](https://github.com/prince-chrismc/user-management/pull/10)

**Implemented enhancements:**

- Logging support for backend [\#17](https://github.com/prince-chrismc/user-management/issues/17)
- Add support for an plain HTTP backend [\#63](https://github.com/prince-chrismc/user-management/pull/63)

- implementation of conditional request support [\#11](https://github.com/prince-chrismc/user-management/pull/11)

**Fixed bugs:**

- Fix css loader configuration [\#77](https://github.com/prince-chrismc/user-management/pull/77)
- Current time displayed in the wrong position [\#66](https://github.com/prince-chrismc/user-management/issues/66)
- Separate front-end from FQDN + Fix front-end Etag handling + Stabilize CI [\#52](https://github.com/prince-chrismc/user-management/pull/52)
- add new user API is not correctly supported [\#14](https://github.com/prince-chrismc/user-management/issues/14)
- fixing new user being empty [\#13](https://github.com/prince-chrismc/user-management/pull/13)

**Deployment improvements:**

- Infrastructure as code [\#19](https://github.com/prince-chrismc/user-management/issues/19)
- Improve front-end test coverage + reduce bundle size [\#78](https://github.com/prince-chrismc/user-management/pull/78)
- Infrastructure as code deployment [\#70](https://github.com/prince-chrismc/user-management/pull/70)
- Combined Alpine deployment image [\#38](https://github.com/prince-chrismc/user-management/pull/38)
- Leverage alpine build and runtime image for condensed image sizes [\#37](https://github.com/prince-chrismc/user-management/pull/37)

**Closed issues:**

- Improved documentation [\#18](https://github.com/prince-chrismc/user-management/issues/18)

**Merged pull requests:**

- Updating project documentation [\#79](https://github.com/prince-chrismc/user-management/pull/79)
- Build various configuration of backend in parallel [\#32](https://github.com/prince-chrismc/user-management/pull/32)
- leveraging binary repo to store build artifacts [\#26](https://github.com/prince-chrismc/user-management/pull/26)
- Add code analysis to CI/CD [\#20](https://github.com/prince-chrismc/user-management/pull/20)

## [v1.0.0-dev.0](https://github.com/prince-chrismc/user-management/tree/v1.0.0-dev.0) (2020-08-12)

[Full Changelog](https://github.com/prince-chrismc/user-management/compare/30247851259609ff3d66a4e788abd86cd2ec0af9...v1.0.0-dev.0)
Expand All @@ -16,14 +58,14 @@ All notable changes to this project will be documented in this file. This projec

**Merged pull requests:**

- refinements to API documentation [\#9](https://github.com/prince-chrismc/user-management/pull/9) ([prince-chrismc](https://github.com/prince-chrismc))
- adding tests for endpoints [\#8](https://github.com/prince-chrismc/user-management/pull/8) ([prince-chrismc](https://github.com/prince-chrismc))
- Improve front-end testing [\#7](https://github.com/prince-chrismc/user-management/pull/7) ([prince-chrismc](https://github.com/prince-chrismc))
- user delete tests produce false positive [\#6](https://github.com/prince-chrismc/user-management/pull/6) ([prince-chrismc](https://github.com/prince-chrismc))
- adding tests for add, edit, and deleting a user [\#5](https://github.com/prince-chrismc/user-management/pull/5) ([prince-chrismc](https://github.com/prince-chrismc))
- adding coverage test [\#4](https://github.com/prince-chrismc/user-management/pull/4) ([prince-chrismc](https://github.com/prince-chrismc))
- limit the number of jobs ran on each commit [\#3](https://github.com/prince-chrismc/user-management/pull/3) ([prince-chrismc](https://github.com/prince-chrismc))
- Bump websocket-extensions from 0.1.3 to 0.1.4 in /web-app [\#2](https://github.com/prince-chrismc/user-management/pull/2) ([dependabot[bot]](https://github.com/apps/dependabot))
- Chore/update json schema [\#1](https://github.com/prince-chrismc/user-management/pull/1) ([prince-chrismc](https://github.com/prince-chrismc))
- refinements to API documentation [\#9](https://github.com/prince-chrismc/user-management/pull/9)
- adding tests for endpoints [\#8](https://github.com/prince-chrismc/user-management/pull/8)
- Improve front-end testing [\#7](https://github.com/prince-chrismc/user-management/pull/7)
- user delete tests produce false positive [\#6](https://github.com/prince-chrismc/user-management/pull/6)
- adding tests for add, edit, and deleting a user [\#5](https://github.com/prince-chrismc/user-management/pull/5)
- adding coverage test [\#4](https://github.com/prince-chrismc/user-management/pull/4)
- limit the number of jobs ran on each commit [\#3](https://github.com/prince-chrismc/user-management/pull/3)
- Bump websocket-extensions from 0.1.3 to 0.1.4 in /web-app [\#2](https://github.com/prince-chrismc/user-management/pull/2)
- Chore/update json schema [\#1](https://github.com/prince-chrismc/user-management/pull/1)

\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
4 changes: 2 additions & 2 deletions web-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "user-management-frontend",
"version": "1.0.0-dev.0",
"version": "1.0.0-dev.1",
"description": "An open-source UI delivering a responsive user management experience",
"homepage": "https://github.com/prince-chrismc/user-management/tree/master/web-app#readme",
"keywords": [
Expand Down Expand Up @@ -98,4 +98,4 @@
"\\.(css|less)$": "identity-obj-proxy"
}
}
}
}
6 changes: 3 additions & 3 deletions web-app/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ yarn pack
#### Build Docker Image

```sh
docker build . -f Dockerfile -t user-managment-frontend:1.0.0-dev.0 # Docker does not support SemVer build information
docker build . -f Dockerfile -t user-managment-frontend:1.0.0-dev.1 # Docker does not support SemVer build information
```

As an alternative, the previsous two teps (package and build image), can be execture with the multistage builder

```sh
docker build . -f Dockerfile.multistage \
--build-arg api_url=https://ec2-18-222-250-141.us-east-2.compute.amazonaws.com \
-t user-managment-frontend:1.0.0-dev.0
-t user-managment-frontend:1.0.0-dev.1
```

### Run Containers

```sh
docker run --rm -d -p 80:80 user-managment-frontend:1.0.0-dev.0
docker run --rm -d -p 80:80 user-managment-frontend:1.0.0-dev.1
```

2 comments on commit 83f1cda

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.