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
/* | |
* Copyright 2017 Red Hat, Inc. and/or its affiliates. | |
* | |
* Licensed under the Eclipse Public License version 1.0, available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
*/ | |
package org.jboss.forge.addon.swarm.config; | |
import java.io.IOException; |
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
/* | |
* Copyright 2017 Red Hat, Inc. and/or its affiliates. | |
* | |
* Licensed under the Eclipse Public License version 1.0, available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
*/ | |
package org.jboss.forge.addon.swarm.config; | |
import java.util.List; |
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
# CentOS 7 | |
# Maven 3.3.9 | |
FROM jboss/base-jdk:8 | |
MAINTAINER George Gastaldi (https://github.com/gastaldi) | |
# install wget and git | |
USER root |
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
package org.wildfly.swarm.undertow.runtime; | |
import javax.enterprise.inject.Any; | |
import javax.enterprise.inject.Instance; | |
import javax.inject.Inject; | |
import org.wildfly.swarm.config.undertow.Server; | |
import org.wildfly.swarm.config.undertow.server.HTTPListener; | |
import org.wildfly.swarm.config.undertow.server.HttpsListener; |
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
#!/bin/bash | |
: ${1:?"groupId is required"} | |
: ${2:?"artifactId is required"} | |
: ${3:?"version is required"} | |
# eg. ~/monitor.sh org.wildfly.swarm spi 1.0.8.Final | |
GROUP_ID=${1//.//} | |
ARTIFACT_ID=$2 | |
VERSION=$3 |
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
// This is the class inside the application | |
public class App implements SwarmCallback { | |
public static void main(String[] args) { | |
// Swarm.run will do the dirty job of initializing a JBoss Modules module and callback the methods defined in App | |
Swarm.run(new App(),args); | |
} | |
@Override | |
public void deploy(Swarm swarm) { |
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
package org.wildfly.swarm.management.console; | |
import org.wildfly.swarm.management.ManagementFraction; | |
import org.wildfly.swarm.spi.api.Fraction; | |
import org.wildfly.swarm.spi.api.annotations.Configuration; | |
/** | |
* Created by ggastald on 29/06/16. | |
*/ | |
@Configuration |
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
package org.keycloak.forge.addon; | |
import java.util.List; | |
import org.junit.Test; | |
import org.keycloak.admin.client.Keycloak; | |
import org.keycloak.admin.client.KeycloakBuilder; | |
import org.keycloak.admin.client.resource.ClientResource; | |
import org.keycloak.admin.client.resource.ClientsResource; | |
import org.keycloak.representations.idm.ClientRepresentation; |
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
#Install the required plugins | |
addon-install-from-git --url https://github.com/forge/wildfly-swarm-addon.git | |
addon-install-from-git --url https://github.com/forge/keycloak-addon.git | |
# Create the project and configure the WildFly Swarm maven plugin | |
project-new --named demo --stack JAVA_EE_7 --type wildfly-swarm | |
# Create the JPA entity | |
jpa-new-entity --named Customer |