Skip to content

Instantly share code, notes, and snippets.

View mgreau's full-sized avatar

Maxime Gréau mgreau

View GitHub Profile
@mgreau
mgreau / openshift_start_capedwarf_wfly
Last active January 2, 2016 04:59
start action_hook file to download and start CapeDwarf WildFly on OpenShift
set -x
APP_SERVER=CapeDwarf_WildFly_2.0.0.Beta1
DWLD_URL=http://downloads.jboss.org/capedwarf/CapeDwarf_WildFly_2.0.0.Beta1.zip
ZIP=CapeDwarf_WildFly_2.0.0.Beta1.zip
cd $OPENSHIFT_DATA_DIR
if [ -d $OPENSHIFT_DATA_DIR/$APP_SERVER ]
then
cp $OPENSHIFT_REPO_DIR/diy/*.war $OPENSHIFT_DATA_DIR/$APP_SERVER/standalone/deployments
cd $OPENSHIFT_DATA_DIR/$APP_SERVER
nohup bin/standalone.sh -c standalone-capedwarf.xml -b $OPENSHIFT_DIY_IP -bmanagement=$OPENSHIFT_DIY_IP > $OPENSHIFT_DIY_DIR/logs/server.log 2>&1 &
@mgreau
mgreau / dzslides_iframe.html
Last active August 29, 2015 13:56
DZslides Navigation doesn't work beacause of the iframe
<html>
<body>
<div class="panel-body" style="padding:0px;">
<p ng-show="!theHtml5.output" class="ng-hide">DZslides Navigation doesn't work beacause of the iframe.</p>
<iframe sandbox="allow-same-origin allow-scripts allow-popups allow-forms" ng-show="theHtml5.output" fullscreen="isRenderFullscreen" id="html5-rendered" srcdoc="&lt;!DOCTYPE html&gt;&lt;html lang=&quot;en&quot; class=&quot;aspect-4-3&quot;&gt;&lt;head&gt;&lt;meta charset=&quot;UTF-8&quot; /&gt;&lt;meta name=&quot;generator&quot; content=&quot;Asciidoctor 1.5.0.preview.1, dzslides backend&quot; /&gt;&lt;title&gt;Quand WebSocket rencontre AsciiDoctor&lt;/title&gt;&lt;meta name=&quot;author&quot; content=&quot;Maxime Greau&quot; /&gt;&lt;meta name=&quot;copyright&quot; content=&quot;CC BY-SA 2.0&quot; /&gt;&lt;meta name=&quot;presdate&quot; content=&quot;Feb 17, 2014&quot; /&gt;&lt;link rel=&quot;stylesheet&quot; href=&quot;http://fonts.googleapis.com/css?family=Oswald&quot; /&gt;&lt;link rel=&quot;stylesheet&quot; href=&quot;./dzslides/theme
@mgreau
mgreau / install-and-run.adoc
Last active August 29, 2015 14:06
JBoss Forge Asciidoctor addon

JBoss Forge Asciidoctor addon

Note

JBoss Forge needs to be installed.

More info on the JBoss Forge website.

@mgreau
mgreau / index.adoc
Last active August 29, 2015 14:07 — forked from thom4parisot/index.adoc
link:source.js[role=include]

is rendered as…

@mgreau
mgreau / gist:ce91843774657a4670e6
Created February 28, 2015 18:35
Arquillian Cube nullpointer log
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project docker-asciidoctorj: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: There was an error in the forked process
[ERROR] org.apache.maven.surefire.testset.TestSetFailedException: java.lang.RuntimeException: Could not run @AfterSuite
[ERROR] at org.apache.maven.surefire.common.junit4.JUnit4RunListener.rethrowAnyTestMechanismFailures(JUnit4RunListener.java:213)
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:133)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
[ERROR] Caused by: java.lang.RuntimeException: Could not run @AfterSuite
[ERROR] at org.jboss.arquillian.junit.Arquillia
@mgreau
mgreau / Gogs-Docker.adoc
Last active August 14, 2019 21:42
Gogs Docker Env (docker-compose)

Replace 192.168.99.100 by your DOCKER_HOST IP

# Configure the server
curl 'http://192.168.99.100:3000/install' \
  -H 'Origin: null' -H 'Accept-Encoding: gzip, deflate' \
  -H 'Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4' \
  -H 'Upgrade-Insecure-Requests: 1' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36' \
@mgreau
mgreau / ip.txt
Created October 28, 2015 23:45
Arquillian Cube - compose
mvn test -X -e -l output.log -Ddocker.api.url=http://192.168.99.100:2376
------------------------------------------------------
T E S T S
-------------------------------------------------------
[DEBUG] boot classpath: /Users/mgreau/.m2/repository/org/apache/maven/surefire/surefire-booter/2.16/surefire-booter-2.16.jar /Users/mgreau/.m2/repository/org/apache/maven/surefire/surefire-api/2.16/surefire-api-2.16.jar /Users/mgreau/Dev/Sources/PBR/HanoiJUG2015/arquillian-cube/docker/ftest-docker-compose/target/test-classes /Users/mgreau/Dev/Sources/PBR/HanoiJUG2015/arquillian-cube/docker/ftest-docker-compose/target/classes /Users/mgreau/.m2/repository/org/jboss/arquillian/junit/arquillian-junit-container/1.1.9.Final/arquillian-junit-container-1.1.9.Final.jar /Users/mgreau/.m2/repository/org/jboss/arquillian/junit/arquillian-junit-core/1.1.9.Final/arquillian-junit-core-1.1.9.Final.jar /Users/mgreau/.m2/repository/org/jboss/arquillian/test/arquillian-test-api/1.1.9.Final/arquillian-test-api-1.1.9.Final.jar /
docker volume create --name=SWF-3612-calendar-workspace
docker run -d -v /home/mgreau/.gnupg/pubring.gpg:/home/exo-release/.gnupg/pubring.gpg:ro \
-v /home/mgreau/.gnupg/secring.gpg:/home/exo-release/.gnupg/secring.gpg:ro \
-v /home/mgreau/.gnupg/gpg.conf:/home/exo-release/.gnupg/gpg.conf:ro \
-v /home/mgreau/.ssh/id_rsa:/home/exo-release/.ssh/id_rsa:ro \
--env-file /home/mgreau/.eXoR/exor-config.properties \
-v SWF-3612-calendar-workspace:/opt/plf-release/workspace \
--volumes-from m2_cache \
--name SWF-3612-calendar \
@mgreau
mgreau / exo_codenvy_news
Last active May 17, 2016 09:07
exo_codenvy_news
Hi all,
Hey look, there is a new button on <a href="https://github.com/exo-addons/task">Task GitHub project!</a> :)
<img src="https://community.exoplatform.com/portal/rest/jcr/repository/collaboration/Users/m___/mg___/mgr___/mgreau/Public/exo_task_codenvy_button.png" width="264px" style="border: 1px solid">
Thanks to Codenvy, this link allows to <b>create in 1 click a workspace developer for eXo Add-on.</b>
Then developer can build & run the eXo Tasks Add-on and test it live without installing anything on his local computer.
It's just a first step so I'm looking for volunteers to test this eXo Add-on Workspace and to give me some feedback about custom commands...
You have 2 options to test it:
#!groovy
// env.NAME = "${env.JOB_NAME}"
exoCI {
gitUrl = 'https://github.com/exoplatform/maven-sandbox-project.git'
gitBranch = 'develop'
dockerImage = 'exoplatform/ci:jdk8-maven32'
jobName = '$JOB_NAME'
}