Sfoglia il codice sorgente

Add travis CI and move files around, introduced Makefile

master
Ray Burgemeestre 6 anni fa
parent
commit
4d8ae00cd8
10 ha cambiato i file con 27 aggiunte e 11 eliminazioni
  1. +13
    -0
      .travis.yml
  2. +0
    -9
      build_docker.sh
  3. +1
    -2
      docker_api/Dockerfile
  4. +0
    -0
      docker_api/Pipfile
  5. +0
    -0
      docker_api/Pipfile.lock
  6. +0
    -0
      docker_api/api.py
  7. +3
    -0
      docker_api/build.sh
  8. +1
    -0
      docker_api/publish.sh
  9. +6
    -0
      docker_web/Dockerfile
  10. +3
    -0
      docker_web/build.sh

+ 13
- 0
.travis.yml Vedi File

@@ -0,0 +1,13 @@
language: javascript

sudo: required
dist: xenial

before_install:
- make prepare
- make clean

script:
- make build
- make docker_api
- make docker_web

+ 0
- 9
build_docker.sh Vedi File

@@ -1,9 +0,0 @@
#docker build --no-cache -t cheerp:latest .
docker build -t cheerp:latest .

#docker build -t sc_build_ubuntu:17.10 ./Ubuntu17.10

docker login
docker tag cheerp:latest rayburgemeestre/cheerp:latest
echo docker push rayburgemeestre/cheerp:latest


Dockerfile → docker_api/Dockerfile Vedi File

@@ -14,9 +14,8 @@ RUN apt-get -y install python3-pip
RUN mkdir /mnt/work

COPY Pipfile /mnt/work/
COPY Pipfile.lock /mnt/work/
WORKDIR /mnt/work

RUN LC_ALL=C.UTF-8 LANG=C.UTF-8 python3 -m pip install pipenv && \
LC_ALL=C.UTF-8 LANG=C.UTF-8 python3 -m pipenv install


Pipfile → docker_api/Pipfile Vedi File


Pipfile.lock → docker_api/Pipfile.lock Vedi File


api.py → docker_api/api.py Vedi File


+ 3
- 0
docker_api/build.sh Vedi File

@@ -0,0 +1,3 @@
docker build -t cheerp:latest .
docker login
docker tag cheerp:latest rayburgemeestre/cheerp:latest

+ 1
- 0
docker_api/publish.sh Vedi File

@@ -0,0 +1 @@
docker push rayburgemeestre/cheerp:latest

+ 6
- 0
docker_web/Dockerfile Vedi File

@@ -0,0 +1,6 @@
FROM nginx:stable-alpine

MAINTAINER Ray Burgemeestre

COPY dist /usr/share/nginx/html


+ 3
- 0
docker_web/build.sh Vedi File

@@ -0,0 +1,3 @@
docker build -t cheerpweb:latest .
docker login
docker tag cheerpweb:latest rayburgemeestre/cheerpweb:latest

Loading…
Annulla
Salva