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

Update package names #1

Merged
merged 8 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM maven:3-eclipse-temurin-21 AS dind
FROM maven:3-eclipse-temurin-21 AS dind

ARG DEBIAN_FRONTEND=noninteractive
ENV PIP_ROOT_USER_ACTION=ignore
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/provide-docker-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Provide needed docker images in ghcr.io

on:
workflow_dispatch:
push:

env:
REGISTRY_IMAGE: ghcr.io/lftraining/lfs148-code

jobs:
retag_and_push:
name: Provide docker image ${{ matrix.image.namespace }}/${{ matrix.image.name }}:${{ matrix.image.tag }} on ghcr.io
runs-on: [ubuntu-latest]
strategy:
matrix:
image:
- name: todobackend-springboot
tag: v2404
namespace: maeddes
- name: todoui-thymeleaf
tag: v2404
namespace: maeddes
- name: todoui-flask
tag: v2404
namespace: maeddes
- name: simple-generator
tag: v2404
namespace: maeddes
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pull image from Docker Hub
run: |
docker pull docker.io/${{ matrix.image.namespace }}/${{ matrix.image.name }}:${{ matrix.image.tag }}

- name: Retag the image for GitHub Container Registry
run: |
docker tag ${{ matrix.image.namespace }}/${{ matrix.image.name }}:${{ matrix.image.tag }} ${{ env.REGISTRY_IMAGE }}-${{ matrix.image.name }}:${{ matrix.image.tag }}

- name: Push image to GitHub Container Registry
run: |
docker push ${{ env.REGISTRY_IMAGE }}-${{ matrix.image.name }}:${{ matrix.image.tag }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
*.jar

settings.json
.envrc
.direnv
.devenv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/maven:3-eclipse-temurin-21 as build
FROM docker.io/maven:3-eclipse-temurin-21 AS build
WORKDIR /workspace/app

COPY pom.xml .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<artifactId>todobackend-automatic</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>todobackend-automatic</name>
<description>Novatec Demo Application</description>
<description>Demo Application</description>

<properties>
<java.version>21</java.version>
Expand Down Expand Up @@ -53,6 +53,20 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
</exclusion>
<exclusion>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
</exclusion>
<exclusion>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ String someInternalMethod(String todo){
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
if(todo.equals("fail")){

System.out.println("Failing ...");
throw new RuntimeException();
}

}
return todo;

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/maven:3-eclipse-temurin-21 as build
FROM docker.io/maven:3-eclipse-temurin-21 AS build
WORKDIR /workspace/app

COPY pom.xml .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<artifactId>todobackend-automatic-solution</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>todobackend-automatic-solution</name>
<description>Novatec Demo Application</description>
<description>Demo Application</description>

<properties>
<java.version>21</java.version>
Expand Down Expand Up @@ -53,6 +53,20 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
</exclusion>
<exclusion>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
</exclusion>
<exclusion>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.opentelemetry.instrumentation</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ String someInternalMethod(@SpanAttribute String todo){
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
if(todo.equals("fail")){

System.out.println("Failing ...");
throw new RuntimeException();
}

}
return todo;

}
Expand Down
37 changes: 0 additions & 37 deletions exercises/manual-instrumentation-java/initial/.gitignore

This file was deleted.

This file was deleted.

This file was deleted.

Loading