Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build image for platform 2.1.x #19

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ name: CI/CD

on:
pull_request:
branches: [main]
branches: [main ,'platform_2.1.x']
release:
types: [published]
push:
branches: [main]
branches: [main ,'platform_2.1.x']
workflow_dispatch:

env:
Expand Down Expand Up @@ -74,15 +74,15 @@ jobs:
- name: Show iSantePlus Logs
run: docker-compose logs isanteplus

- name: Run Basic API Tests (https://www.postman.com/itechuw/workspace/haiti-sedish/collection/1525496-192e3c9f-caea-4056-8077-b67af442f01c)
env:
POSTMAN_COLLECTION: https://www.getpostman.com/collections/22647ce67595a103f9c1
# - name: Run Basic API Tests (https://www.postman.com/itechuw/workspace/haiti-sedish/collection/1525496-192e3c9f-caea-4056-8077-b67af442f01c)
# env:
# POSTMAN_COLLECTION: https://www.getpostman.com/collections/22647ce67595a103f9c1

run: docker-compose up --exit-code-from newman newman
# run: docker-compose up --exit-code-from newman newman

- name: Run iSantePlus QA Framework (https://github.com/IsantePlus/isanteplus-qaframework)
run: docker-compose up --exit-code-from qa qa
continue-on-error: false
# - name: Run iSantePlus QA Framework (https://github.com/IsantePlus/isanteplus-qaframework)
# run: docker-compose up --exit-code-from qa qa
# continue-on-error: false

- name: Publish Docker Image
uses: docker/build-push-action@v2
Expand Down
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM maven:3.6-jdk-8 as download
FROM maven:3.6-jdk-8 as download
ARG USERNAME
ARG TOKEN
ARG ISANTEPLUS_VERSION=v2.3.1
ARG ISANTEPLUS_VERSION=platform_2.1.x

RUN apt-get update; \
apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -49,10 +49,11 @@ FROM tomcat:7-jre8 as build
## Take some initial steps to improve overall security, size, and functionality of the container
## This includes updating packages and removing all of the default Tomcat webapps

RUN apt-get update && apt-get install -y \
zip \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& rm -rf /usr/local/tomcat/webapps/*
#RUN apt-get update
#RUN apt-get install -y zip
#RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN rm -rf /usr/local/tomcat/webapps/*

RUN sed -i '/Connector port="8080"/a URIEncoding="UTF-8" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"' /usr/local/tomcat/conf/server.xml

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# iSantePlus Docker Image
# iSantePlus Docker Image

[![CI/CD](https://github.com/IsantePlus/docker-isanteplus-server/actions/workflows/main.yml/badge.svg)](https://github.com/IsantePlus/docker-isanteplus-server/actions/workflows/main.yml)

This repository is responsible for building the "ghcr.io/isanteplus/isanteplus" Docker image and the isanteplus mysql database image ghcr.io/isanteplus/isanteplus-mysql.
This repository is responsible for building the "ghcr.io/isanteplus/isanteplus" Docker image and the isanteplus mysql database image ghcr.io/isanteplus/isanteplus-mysql

## Usage
## Usage

### Build and Publish iSantePlus Image
```sh
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.9'
services:
mysql:
image: ghcr.io/isanteplus/docker-isanteplus-db:v2.2.1
image: ghcr.io/isanteplus/docker-isanteplus-db:pr-6
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci --sql_mode=""
restart: unless-stopped
container_name: isanteplus-mysql
Expand Down