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

13_PLF_SD #21

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9026c74
Create docker-image.yml
PierreLouisF Jan 16, 2023
08a50e9
Create build-docker-image.yml
sebastiendelestret Feb 6, 2023
17cb78a
Update build-docker-image.yml
sebastiendelestret Feb 6, 2023
4336b5e
Update build-docker-image.yml
sebastiendelestret Feb 6, 2023
3874971
testPierreLouisDockerIMG
PierreLouisF Feb 6, 2023
718b5a0
Update Dockerfile
sebastiendelestret Feb 6, 2023
a205290
TestPush
PierreLouisF Feb 6, 2023
7b38f5b
Merge branch 'main' of https://github.com/PierreLouisF/angular-securi…
PierreLouisF Feb 6, 2023
0596a43
clean files and update build-docker-image
sebastiendelestret Feb 6, 2023
c0f247f
Update build-docker-image.yml
sebastiendelestret Feb 6, 2023
f930f57
Update build-docker-image.yml
sebastiendelestret Feb 6, 2023
1b3ea7f
Update build-docker-image.yml
sebastiendelestret Feb 6, 2023
667b867
deploy img to DockerHub
PierreLouisF Feb 6, 2023
94762bc
deploy image to dockerHub v2
PierreLouisF Feb 6, 2023
c068529
Update build-docker-image.yml
PierreLouisF Feb 6, 2023
341a5ec
Update build-docker-image.yml
PierreLouisF Feb 6, 2023
ece8364
Update build-docker-image.yml
PierreLouisF Feb 6, 2023
5777f82
Update build-docker-image.yml
PierreLouisF Feb 6, 2023
e23a286
Update build-docker-image.yml
sebastiendelestret Feb 6, 2023
4e9e2be
Update build-docker-image.yml
sebastiendelestret Feb 6, 2023
0089398
add condition stop workflow on FATAL vulnerability
sebastiendelestret Feb 6, 2023
f1cd8ee
Update Dockerfile
sebastiendelestret Feb 6, 2023
06f014b
Update Dockerfile
sebastiendelestret Feb 12, 2023
eb79056
Update build-docker-image.yml
sebastiendelestret Feb 12, 2023
10284a0
Update build-docker-image.yml
sebastiendelestret Feb 12, 2023
02e9e80
Update build-docker-image.yml
sebastiendelestret Feb 12, 2023
527f9e0
Update build-docker-image.yml
sebastiendelestret Feb 12, 2023
85806a3
Update build-docker-image.yml
sebastiendelestret Feb 12, 2023
bb445de
dockerfile corrections based on linter recommendations
sebastiendelestret Feb 13, 2023
50b8b69
Update Dockerfile
sebastiendelestret Feb 13, 2023
889d57b
Update build-docker-image.yml
sebastiendelestret Feb 13, 2023
9773b13
Dockerfile vulnérable
sebastiendelestret Feb 15, 2023
9166c8b
Dockerfile corrigé
sebastiendelestret Feb 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
IMAGE_NAME: my-docker-image

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Docker Lint
uses: hadolint/[email protected]
with:
dockerfile: ./docker/Dockerfile
failure-threshold : warning

- name: Log in to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ${{ secrets.DOCKER_USERNAME }}/tp_gr11_pl_seb

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: ./docker/
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
17 changes: 17 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Use an official Ubuntu image as the base image
FROM ubuntu:20.04

# Update the package list and upgrade the installed packages
RUN apt-get update && apt-get upgrade -y

# Install the necessary packages
RUN apt-get install -y nano=4.8-1ubuntu1

# Set the working directory
WORKDIR /app

# Copy the application code to the working directory
COPY . .

# Specify the command to run when the container starts
CMD [ "/bin/bash" ]
2 changes: 1 addition & 1 deletion pw/pw-jwt-oauth/server/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
JHIPSTER_SLEEP=0

# add directly the war
ADD *.war /app.war
#ADD *.war /app.war

VOLUME /tmp
EXPOSE 8080
Expand Down