ajout ap33-test
This commit is contained in:
34
config/ap33-test/goss.yaml
Normal file
34
config/ap33-test/goss.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
package:
|
||||
docker:
|
||||
installed: true
|
||||
versions:
|
||||
- 1.5-2
|
||||
service:
|
||||
docker:
|
||||
enabled: true
|
||||
running: true
|
||||
group:
|
||||
docker:
|
||||
exists: true
|
||||
gid: 994
|
||||
interface:
|
||||
eth0:
|
||||
exists: true
|
||||
addrs:
|
||||
- 172.16.0.121/24
|
||||
- fe80::be24:11ff:fe0c:c468/64
|
||||
mtu: 1500
|
||||
http:
|
||||
http://ap33-test:8080:
|
||||
status: 200
|
||||
allow-insecure: false
|
||||
no-follow-redirects: false
|
||||
timeout: 10000
|
||||
body:
|
||||
- "payara"
|
||||
http://ap33-test:4848/:
|
||||
status: 200
|
||||
allow-insecure: true
|
||||
no-follow-redirects: false
|
||||
timeout: 10000
|
||||
|
||||
38
config/ap33-test/payara/docker-compose.yml
Normal file
38
config/ap33-test/payara/docker-compose.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
services:
|
||||
payara:
|
||||
image: payara/server-full:6.2025.9-jdk17
|
||||
container_name: payara
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "4848:4848"
|
||||
- "8181:8181"
|
||||
env_file:
|
||||
- "variables.env"
|
||||
#environment:
|
||||
#SCRIPT_DIR: ""
|
||||
# volumes:
|
||||
#- ./data/payara:/opt/payara
|
||||
#- ./payara/apps:/opt/payara/deployments
|
||||
# depends_on:
|
||||
# - db
|
||||
db:
|
||||
image: mariadb
|
||||
container_name: db
|
||||
ports:
|
||||
- "3336:3306"
|
||||
env_file:
|
||||
- "variables.env"
|
||||
volumes:
|
||||
- ./data/db_data:/var/lib/mysql
|
||||
- ./init:/docker-entrypoint-initdb.d
|
||||
restart: unless-stopped
|
||||
|
||||
phpmyadmin:
|
||||
image: phpmyadmin
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:80
|
||||
environment:
|
||||
- PMA_ARBITRARY=1
|
||||
env_file:
|
||||
- "variables.env"
|
||||
80
config/ap33-test/payara/init/bdclient.sql
Normal file
80
config/ap33-test/payara/init/bdclient.sql
Normal file
@@ -0,0 +1,80 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.2.1deb1+deb12u1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Hôte : localhost:3306
|
||||
-- Généré le : sam. 04 oct. 2025 à 13:39
|
||||
-- Version du serveur : 10.11.14-MariaDB-0+deb12u2
|
||||
-- Version de PHP : 8.2.29
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Base de données : `bdclient`
|
||||
--
|
||||
CREATE DATABASE IF NOT EXISTS `bdclient` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
USE `bdclient`;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Structure de la table `client`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `client` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`nom` varchar(25) NOT NULL,
|
||||
`prenom` varchar(25) NOT NULL,
|
||||
`mail` varchar(25) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
|
||||
--
|
||||
-- Déchargement des données de la table `client`
|
||||
--
|
||||
|
||||
INSERT INTO `client` (`id`, `nom`, `prenom`, `mail`) VALUES
|
||||
(1, 'Thevenot', 'Delphine', ''),
|
||||
(2, 'Sevre', 'Philippe', ''),
|
||||
(3, 'Dupuis', 'JM', ''),
|
||||
(4, 'thevenot', 'Eric', 'eric@gmail.com'),
|
||||
(5, 'chabert', 'thomas', '');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Structure de la table `salarie`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `salarie` (
|
||||
`idSal` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`login` varchar(25) NOT NULL,
|
||||
`mdp` varchar(25) NOT NULL,
|
||||
`estAdmin` tinyint(1) NOT NULL,
|
||||
PRIMARY KEY (`idSal`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
|
||||
--
|
||||
-- Déchargement des données de la table `salarie`
|
||||
--
|
||||
|
||||
INSERT INTO `salarie` (`idSal`, `login`, `mdp`, `estAdmin`) VALUES
|
||||
(1, 'dthevenot', 'dt', 1),
|
||||
(2, 'mdavid', 'md', 0);
|
||||
COMMIT;
|
||||
|
||||
DROP USER 'adminBDClient'@'%';
|
||||
CREATE USER 'adminBDClient' IDENTIFIED BY "mdpBDClient";
|
||||
GRANT ALL PRIVILEGES ON bdclient.* TO 'adminBDClient'@'%' WITH GRANT OPTION;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
8
config/ap33-test/payara/variables.env
Normal file
8
config/ap33-test/payara/variables.env
Normal file
@@ -0,0 +1,8 @@
|
||||
MYSQL_DATABASE=bdclient
|
||||
MYSQL_HOST=db
|
||||
MYSQL_PORT=3306
|
||||
MYSQL_USER=adminBDClient
|
||||
MYSQL_PASSWORD=mdpBDClient
|
||||
MYSQL_ROOT_PASSWORD=dbpwd
|
||||
#JDBC_RESOURCE_NAME=jdbc/cesibigapp
|
||||
#JMS_RESOURCE_NAME=jms/cesibigapp
|
||||
Reference in New Issue
Block a user