Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 9675f70

Browse files
Merge pull request #170 from brunohbrito/dev
dockerfile for ci on hub.docker
2 parents 63e3225 + f5b65a2 commit 9675f70

6 files changed

Lines changed: 50 additions & 52 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Build Status](https://dev.azure.com/brunohbrito/Jp%20Project/_apis/build/status/JPProject%20AdminUI%20-%20CD?branchName=master)](https://dev.azure.com/brunohbrito/Jp%20Project/_build/latest?definitionId=2&branchName=master)
55
[![License](https://img.shields.io/github/license/brunohbrito/JPProject.IdentityServer4.AdminUI)](LICENSE)
66

7-
This is an Administrator Panel for JP Project. It's available in 2 versions: Light and Full. See below the differences.
7+
This is an Administrator Panel for IdentityServer4. It's available in 2 versions: Light and Full. See below the differences.
88

99
# Several break changes
1010

@@ -14,18 +14,18 @@ The version ASP.NET Core 3.0 have changed a lot. So before upgrade read differen
1414

1515
If you know the differences between Light and Full. Check the installation instructions below. If wanna understand, check more here [Presentation](#presentation) version.
1616

17-
## Full Installation
17+
## Full Install
1818

1919
Windows users:
20-
* download [jpproject-docker-windows.zip](https://github.com/brunohbrito/JP-Project/raw/master/build/jpproject-docker-windows.zip)
20+
* download [jpproject-docker.zip](https://github.com/brunohbrito/JPProject.IdentityServer4.SSO/releases/download/3.0.0/jpproject-docker.zip)
2121
* Unzip and execute `docker-run.bat` (As administrator)
2222

2323
Linux users:
24-
* Download [docker-compose.yml](https://github.com/brunohbrito/JP-Project/raw/master/build/docker-compose.yml)
24+
* Download [jpproject-docker.zip](https://github.com/brunohbrito/JPProject.IdentityServer4.SSO/releases/download/3.0.0/jpproject-docker.zip)
2525
* Add `127.0.0.1 jpproject-sso` entry to hosts file (`/etc/hosts`)
26-
* `docker-compose up`
26+
* unzip and execute `docker-compose up`
2727

28-
## Light version
28+
## Light Install
2929

3030
You will need to create a Client and API resources in you IdentityServer4. At the end of this section have some shortcuts.
3131

@@ -136,12 +136,12 @@ Api resource configuration
136136
137137
- [Several break changes](#several-break-changes)
138138
- [Installation](#installation)
139-
- [Full Installation](#full-installation)
140-
- [Light version](#light-version)
139+
- [Full Install](#full-install)
140+
- [Light Install](#light-install)
141141
- [Table of Contents](#table-of-contents)
142142
- [Presentation](#presentation)
143143
- [Full](#full)
144-
- [Light version](#light-version-1)
144+
- [Light version](#light-version)
145145
- [Admin UI](#admin-ui)
146146
- [Demo](#demo)
147147
- [We are online at Azure.](#we-are-online-at-azure)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# base image
2+
FROM node:12.7-alpine as builder
3+
4+
# install and cache app dependencies
5+
COPY ["src/Frontend/Jp.AdminUI/package.json", "./"]
6+
COPY ["src/Frontend/Jp.AdminUI/package-lock.json", "./"]
7+
8+
## Storing node modules on a separate layer will prevent unnecessary npm installs at each build
9+
10+
RUN npm ci && mkdir /app && mv ./node_modules ./app/
11+
12+
WORKDIR /app
13+
# add app
14+
COPY ["src/Frontend/Jp.AdminUI/", "/app"]
15+
# rebuild node
16+
RUN npm rebuild node-sass
17+
# generate build
18+
RUN npm run ng build -- --configuration=production
19+
20+
##################
21+
### production ###
22+
##################
23+
24+
# base image
25+
FROM nginx:alpine
26+
27+
## Remove default nginx website
28+
RUN rm -rf /usr/share/nginx/html/*
29+
30+
# copy artifact build from the 'build environment'
31+
COPY --from=builder /app/nginx/nginx.conf /etc/nginx/conf.d/default.conf
32+
COPY --from=builder /app/dist /usr/share/nginx/html
33+
34+
# expose port 80
35+
EXPOSE 80/tcp
36+
37+
# run nginx
38+
CMD ["nginx", "-g", "daemon off;"]

azure-pipelines.yml renamed to build/continuous-delivery/azure-pipelines-CD for Zip and Publish (App Service).yml

File renamed without changes.

src/Frontend/Jp.AdminUI/angular.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"assets": [
3030
"src/assets",
3131
"src/silent-refresh.html",
32-
"src/web.config"
3332
],
3433
"styles": [
3534
"src/app/core/preloader/preloader.scss",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export const environment = {
22
production: true,
3-
ResourceServer: "https://jpproject.azurewebsites.net/api/",
4-
IssuerUri: "https://jpproject.azurewebsites.net/sso",
3+
ResourceServer: "https://api.jpproject.net/",
4+
IssuerUri: "https://sso.jpproject.net",
55
RequireHttps: true,
6-
Uri: "https://jpproject.azurewebsites.net/admin-ui",
6+
Uri: "https://admin.jpproject.net",
77
defaultTheme: "E",
88
version: "3.0.0"
99
};

src/Frontend/Jp.AdminUI/src/web.config

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)