-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from codeurjc-students/development-2.1
Upgrade to version 2.1
- Loading branch information
Showing
523 changed files
with
36,546 additions
and
17,527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,47 @@ | ||
dist: trusty | ||
branches: | ||
only: | ||
- master | ||
only: | ||
- master | ||
jobs: | ||
include: | ||
- language: java | ||
jdk: oraclejdk11 | ||
services: | ||
- docker | ||
before_script: | ||
- cd ./vscode4teaching-server/ | ||
- chmod +x mvnw | ||
script: | ||
- "./mvnw clean package -B -q" | ||
after_script: | ||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | ||
- docker build -t vscode4teaching/vscode4teaching:2.0.2 . | ||
- docker build -t vscode4teaching/vscode4teaching:latest . | ||
- docker push vscode4teaching/vscode4teaching:2.0.2 | ||
- docker push vscode4teaching/vscode4teaching:latest | ||
- language: node_js | ||
os: | ||
- linux | ||
- osx | ||
node_js: 10.15.3 | ||
install: | ||
- | | ||
if [ $TRAVIS_OS_NAME == "linux" ]; then | ||
export DISPLAY=':99.0' | ||
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | ||
fi | ||
before_script: | ||
- cd ./vscode4teaching-extension | ||
- npm install --save-dev | ||
script: | ||
- npm test | ||
cache: | ||
npm: false | ||
include: | ||
- name: V4T Server (Spring Boot) | ||
language: java | ||
jdk: oraclejdk11 | ||
services: | ||
- docker | ||
before_script: | ||
- cd ./vscode4teaching-server/ | ||
- chmod +x mvnw | ||
script: | ||
- "./mvnw clean package -B -q" | ||
after_script: | ||
- cd .. | ||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | ||
- docker build -t vscode4teaching/vscode4teaching:2.1.3 . | ||
- docker build -t vscode4teaching/vscode4teaching:latest . | ||
- docker push vscode4teaching/vscode4teaching:2.1.3 | ||
- docker push vscode4teaching/vscode4teaching:latest | ||
- name: V4T Extension (Node.js) | ||
language: node_js | ||
os: | ||
- linux | ||
- osx | ||
node_js: 16.16.0 | ||
install: | ||
- | | ||
if [ $TRAVIS_OS_NAME == "linux" ]; then | ||
export DISPLAY=':99.0' | ||
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | ||
fi | ||
before_script: | ||
- cd ./vscode4teaching-extension | ||
- npm install --save-dev | ||
script: | ||
- npm test | ||
cache: | ||
npm: false | ||
|
||
env: | ||
global: | ||
- secure: Xubi//N9TBKtampk7kO3V0rvuhbCIzVJ7ad2oJIoZGVUyCgmt9KdK46jfG2eSUYuvOMKg1xrXia0R0YC+VveoJPiRgCxqNIfqhb605XaY0SLRXAh2cThABs6q3IwFzoFVIG/8/xhZpqSngbystQxm8EflGhYdZYukijqtEEx78VrtuWaPRBcxGBFt8GaaLyzWvy8eY6Fzw4KZntZPHaalLt0t5k+Qt+Dt2AJuUb3YV1IaWyMQIeF0dKM2XLMpUISeRBVzPrqSmRxpbMyR+8iktPY2KYJFmeH1MD8H1imG/OVkHxSRiXsPXkZ8ueqXSzZ1R9cNIR6ZLKRIyo2sMvxRz5Kzr2fhcEtxCtyRW0sXFV4EG7lsUewn9E9MJ7e5OtnwZOKkcIvStydrwd3t9TH+pUdptgVGA+EdL/T4mcIjPkzYWPoUoLn1MYR3YYUezvqsJXrgl4HqQJSSLgaCEso/q/s5+IH+1y4xFYpLNo05+OhMWz0vNCBbPT02VC+6YTQwHAOcGNjOHDwgkwkg1KC46ZMkbdfm4bhNL1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MhiGjADSp81LVdrSnGe7P7HoYEX3CGnukabV9+3b3eOXr+iy4e0UxZLsTp8Gs8T85Qqc6Kpc0= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Step 1: Compilation of Angular frontend | ||
# It will be embedded as a static resource into Spring Boot backend | ||
FROM node:16.13.2 AS angular | ||
COPY vscode4teaching-webapp /usr/src/app | ||
WORKDIR /usr/src/app | ||
RUN ["npm", "install"] | ||
RUN ["npm", "run", "build"] | ||
|
||
# Step 2: Compilation of Maven project (generation of JAR) | ||
FROM maven:3.8.4-jdk-11 AS builder | ||
COPY vscode4teaching-server /data | ||
COPY --from=angular /usr/src/app/dist /data/src/main/resources/static | ||
WORKDIR /data | ||
RUN ["mvn", "clean", "package"] | ||
|
||
# Step 3: Generation of Docker image using the JAR previously built | ||
FROM adoptopenjdk/openjdk11:latest | ||
RUN apt-get update && apt-get install -y netcat && rm -rf /var/lib/apt/lists/* | ||
COPY --from=builder /data/target/vscode4teaching-server-*.jar ./app/vscode4teaching-server-*.jar | ||
COPY vscode4teaching-server/docker/waitDB.sh ./app/waitDB.sh | ||
EXPOSE 8080 | ||
RUN ["chmod", "+x", "./app/waitDB.sh"] | ||
CMD ["./app/waitDB.sh"] |
Oops, something went wrong.