12 Commits

Author SHA1 Message Date
0eaf18822b Version bump to v0.3.6
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2023-01-25 13:27:58 -05:00
7bdd4a5dfb Added log4j2.xml to linux packages to fix the deployment
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-01-25 13:27:16 -05:00
ea6e6c95e1 Updated woodpecker
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2023-01-25 11:54:31 -05:00
c7f9c4cf73 Fixed woodpecker config
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed
2023-01-25 11:38:48 -05:00
ce9efc463d Version bump to v0.3.5
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed
2023-01-25 11:09:28 -05:00
879ff8f8f4 Updated woodpecker config to copy packages to the local repo
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-01-25 11:08:38 -05:00
f132861cbc Fixed log4j class not found error; Updated log4j version
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2023-01-25 10:14:50 -05:00
47e8ec4f43 Version bump to v0.3.4
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2023-01-25 01:02:10 -05:00
c0c96c7a51 Updated documentation to use 17
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-01-25 00:57:06 -05:00
8cb640d804 Updated woodpecker config to use eclipse temurin Alpine image
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2023-01-24 23:18:33 -05:00
1189f4b61c Changed dnf commands to apt for the new image
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-01-15 17:07:25 -05:00
0f5b9eb45a Changed to using the eclipse temurin JDK builds
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-01-15 17:04:52 -05:00
5 changed files with 74 additions and 15 deletions

View File

@ -1,19 +1,19 @@
pipeline: pipeline:
test: test:
image: maven:3-openjdk-18 image: maven:3-eclipse-temurin-17-alpine
commands: commands:
- microdnf install -y lsof - apk add lsof
- mvn test - mvn test
build: build:
image: maven:3-openjdk-18 image: maven:3-eclipse-temurin-17-alpine
commands: commands:
- mvn clean compile assembly:single - mvn clean compile assembly:single
package: package:
image: maven:3-openjdk-18 image: maven:3-eclipse-temurin-17-alpine
commands: commands:
- microdnf install -y rpm-build - apk add rpm
- mvn clean compile package -Dmaven.test.skip - mvn clean compile package -Dmaven.test.skip
when: when:
event: tag event: tag
@ -31,3 +31,49 @@ pipeline:
- target/rpm/dragoon/RPMS/noarch/dragoon-*.rpm - target/rpm/dragoon/RPMS/noarch/dragoon-*.rpm
when: when:
event: tag event: tag
copy_deb_package:
image: appleboy/drone-scp
settings:
host: "repo.int.metaunix.net"
username:
from_secret: repo_admin
password:
from_secret: repo_password
port: 22
target: /srv/repo/apt/dragoon/
source: target/dragoon-*.deb
strip_components: 1
when:
event: tag
copy_rpm_package:
image: appleboy/drone-scp
settings:
host: "repo.int.metaunix.net"
username:
from_secret: repo_admin
password:
from_secret: repo_password
port: 22
target: /srv/repo/dnf/dragoon/
source: target/rpm/dragoon/RPMS/noarch/dragoon-*.rpm
strip_components: 5
when:
event: tag
update_repos:
image: appleboy/drone-ssh
settings:
host:
- repo.int.metaunix.net
username:
from_secret: repo_admin
password:
from_secret: repo_password
port: 22
command_timeout: 2m
script:
- sudo /home/xadmin/scripts/update_repo.sh
when:
event: tag

View File

@ -4,17 +4,15 @@ The Bit Goblin video transcoder.
## Building ## Building
Currently this project is targeting Java 11 LTS and uses Maven to manage the software lifecycle. Thus, you must have a Java 11 JDK and Maven installed to build this project. Currently this project is targeting Java 17 LTS and uses Maven to manage the software lifecycle. Thus, you must have a Java 17 JDK and Maven installed to build this project.
*NOTE:* The targeted Java version will likely change to 17 LTS soon.
### Ubuntu ### Ubuntu
`sudo apt install openjdk-11-jdk maven` `sudo apt install openjdk-17-jdk maven`
### Red Hat/Almalinux ### Red Hat/Almalinux
`sudo dnf install java-11-openjdk-devel maven` `sudo dnf install java-17-openjdk-devel maven`
### Actually Building ### Actually Building

21
pom.xml
View File

@ -6,7 +6,7 @@
<groupId>tech.bitgoblin</groupId> <groupId>tech.bitgoblin</groupId>
<artifactId>dragoon</artifactId> <artifactId>dragoon</artifactId>
<version>0.3.3</version> <version>0.3.6</version>
<name>Dragoon</name> <name>Dragoon</name>
<url>https://www.bitgoblin.tech</url> <url>https://www.bitgoblin.tech</url>
@ -55,12 +55,12 @@
<dependency> <dependency>
<groupId>org.apache.logging.log4j</groupId> <groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId> <artifactId>log4j-api</artifactId>
<version>2.17.2</version> <version>2.19.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.logging.log4j</groupId> <groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId> <artifactId>log4j-core</artifactId>
<version>2.17.2</version> <version>2.19.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
@ -160,6 +160,10 @@
<source>${basedir}/target/dragoon-${project.version}-jar-with-dependencies.jar</source> <source>${basedir}/target/dragoon-${project.version}-jar-with-dependencies.jar</source>
<target>/opt/dragoon/dragoon.jar</target> <target>/opt/dragoon/dragoon.jar</target>
</fileSet> </fileSet>
<fileSet>
<source>${basedir}/src/main/resources/log4j2.xml</source>
<target>/opt/dragoon/log4j2.xml</target>
</fileSet>
</fileSets> </fileSets>
</configuration> </configuration>
</plugin> </plugin>
@ -201,6 +205,17 @@
</source> </source>
</sources> </sources>
</mapping> </mapping>
<mapping>
<directory>/opt/dragoon/log4j2.xml</directory>
<filemode>755</filemode>
<username>dragoon</username>
<groupname>dragoon</groupname>
<sources>
<source>
<location>${basedir}/src/main/resources/log4j2.xml</location>
</source>
</sources>
</mapping>
<mapping> <mapping>
<directory>/etc/dragoon</directory> <directory>/etc/dragoon</directory>
<configuration>true</configuration> <configuration>true</configuration>

View File

@ -4,7 +4,7 @@ Description=Dragoon video transcoder service
[Service] [Service]
User=dragoon User=dragoon
Group=dragoon Group=dragoon
ExecStart=/usr/bin/java -jar '/opt/dragoon/dragoon.jar' ExecStart=/usr/bin/java -jar '/opt/dragoon/dragoon.jar' -Dlog4j.configurationFile=/opt/dragoon/log4j2.xml
SuccessExitStatus=143 SuccessExitStatus=143
[Install] [Install]

View File

@ -4,6 +4,6 @@ import org.apache.logging.log4j.LogManager;
public class Logger { public class Logger {
public static org.apache.logging.log4j.Logger logger = LogManager.getLogger(); public static org.apache.logging.log4j.Logger logger = LogManager.getRootLogger();
} }