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 epel version to -7 #161

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
45 changes: 45 additions & 0 deletions layers/rhel-server-7:gui:jbds-10/@docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html>
<title>JBoss Developer Studio 10 Image</title>

<xmp style="display:none;">
## Description

This image provides a base installation of JBoss Developer Studio plus tools.

By default this image requires 2 CPU(s) and 4096MB RAM.

<!-- HEADER -->

## Getting started

#### TODO

TODO

<!-- FOOTER -->

## VM image maintainer(s)

- James Falkner &lt;[[email protected]](mailto:[email protected])&gt;

## Please contribute to this demo!

Questions, comments, bug reports, feature requests, patches, pull requests and
cake are all welcomed on [GitHub](http://github.com/RedHatEMEA/demobuilder) or
to [[email protected]](mailto:[email protected]).

If sending a bug report, please include the contents of
[/etc/demobuilder](/etc/demobuilder), as this will indicate the builds that were
used to create the VM image.
</xmp>

<script src="strapdown/v/0.2/strapdown.js"></script>
<script type="text/javascript">
var spans = document.getElementsByTagName('span');
for (var i = 0; i < spans.length; i++) {
spans[i].className = "pln"
}
</script>

</html>
1 change: 1 addition & 0 deletions layers/rhel-server-7:gui:jbds-10/@docs/strapdown
31 changes: 31 additions & 0 deletions layers/rhel-server-7:gui:jbds-10/@target/InstallConfigRecord.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<AutomatedInstallation langpack="eng">
<com.jboss.devstudio.core.installer.HTMLInfoPanelWithRootWarning id="introduction"/>
<com.izforge.izpack.panels.HTMLLicencePanel id="licence"/>
<com.jboss.devstudio.core.installer.PathInputPanel id="target">
<installpath>/usr/local/devstudio</installpath>
</com.jboss.devstudio.core.installer.PathInputPanel>
<com.jboss.devstudio.core.installer.JREPathPanel id="jre"/>
<com.jboss.devstudio.core.installer.JBossAsSelectPanel id="as">
<installgroup>devstudio</installgroup>
</com.jboss.devstudio.core.installer.JBossAsSelectPanel>
<com.jboss.devstudio.core.installer.InstallAdditionalFeaturesPanel id="features">
<ius>com.jboss.devstudio.core.package,org.testng.eclipse.feature.group</ius>
<locations>devstudio</locations>
</com.jboss.devstudio.core.installer.InstallAdditionalFeaturesPanel>
<com.jboss.devstudio.core.installer.UpdatePacksPanel id="updatepacks"/>
<com.jboss.devstudio.core.installer.DiskSpaceCheckPanel id="diskspacecheck"/>
<com.izforge.izpack.panels.SummaryPanel id="summary"/>
<com.izforge.izpack.panels.InstallPanel id="install"/>
<com.jboss.devstudio.core.installer.CreateLinkPanel id="createlink">
<jrelocation>/usr/lib/jvm/jre-1.8.0-openjdk/bin/java</jrelocation>
</com.jboss.devstudio.core.installer.CreateLinkPanel>
<com.izforge.izpack.panels.ShortcutPanel id="shortcut">
<programGroup name=""/>
<shortcut KdeSubstUID="false" categories="Applications;Development;" commandLine="" createForAll="true" description="Runs the Red Hat JBoss Developer Studio 10.0.0.GA" encoding="UTF-8" group="false" icon="/usr/local/devstudio/studio/48-devstudio.icon.png" iconIndex="0" initialState="1" mimetype="" name="Red Hat JBoss Developer Studio 10.0.0.GA" target="/usr/local/devstudio/studio/devstudio" terminal="false" terminalOptions="" tryexec="" type="Application" url="" usertype="0" workingDirectory="/usr/local/devstudio/studio"/>
<shortcut KdeSubstUID="false" categories="Applications;Development;" commandLine="" createForAll="true" description="Runs the Red Hat JBoss Developer Studio 10.0.0.GA" encoding="UTF-8" group="true" icon="/usr/local/devstudio/studio/48-devstudio.icon.png" iconIndex="0" initialState="1" mimetype="" name="Red Hat JBoss Developer Studio 10.0.0.GA" target="/usr/local/devstudio/studio/devstudio" terminal="false" terminalOptions="" tryexec="" type="Application" url="" usertype="0" workingDirectory="/usr/local/devstudio/studio"/>
<shortcut KdeSubstUID="false" categories="Applications;Development;" commandLine="-jar &quot;/usr/local/devstudio/Uninstaller/uninstaller.jar&quot;" createForAll="true" description="Uninstall Red Hat JBoss Developer Studio 10.0.0.GA" encoding="UTF-8" group="true" icon="/usr/local/devstudio/studio/48-uninstall.icon.png" iconIndex="0" initialState="1" mimetype="" name="Uninstall Red Hat JBoss Developer Studio 10.0.0.GA" target="java" terminal="false" terminalOptions="" tryexec="" type="Application" url="" usertype="0" workingDirectory="/usr/local/devstudio/Uninstaller"/>
</com.izforge.izpack.panels.ShortcutPanel>
<com.jboss.devstudio.core.installer.ShortcutPanelPatch id="shortcutpatch"/>
<com.izforge.izpack.panels.SimpleFinishPanel id="finish"/>
</AutomatedInstallation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[Desktop Entry]
Categories=Applications;Development;
Comment=Runs the Red Hat JBoss Developer Studio 10.0.0.GA
Comment[en]=Runs the Red Hat JBoss Developer Studio 10.0.0.GA
Encoding=UTF-8
Exec=/usr/local/devstudio/studio/devstudio
GenericName=
GenericName[en]=
Icon=/usr/local/devstudio/studio/48-devstudio.icon.png
MimeType=
Name=Red Hat JBoss Developer Studio 10.0.0.GA
Name[en]=Red Hat JBoss Developer Studio 10.0.0.GA
Path=/usr/local/devstudio/studio
ServiceTypes=
SwallowExec=
SwallowTitle=
Terminal=false
TerminalOptions=
Type=Application
URL=
X-KDE-SubstituteUID=false
X-KDE-Username=root

# created by com.izforge.izpack.util.os.Unix_Shortcut $Revision$
# $Id$
33 changes: 33 additions & 0 deletions layers/rhel-server-7:gui:jbds-10/@target/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash -ex

. vm-functions

register_channels rhel-7-server-rpms rhel-7-server-extras-rpms rhel-7-server-optional-rpms

yum_install $MIRROR_FEDORA/pub/epel/7/x86_64/e/epel-release-7-7.noarch.rpm
sed -i -e "s!^#baseurl=http://download.fedoraproject.org/!baseurl=$MIRROR_FEDORA/!; s/^mirrorlist=/#mirrorlist=/" /etc/yum.repos.d/epel.repo

yum_install java-1.8.0-openjdk-devel unzip git ansible httpd-tools nodejs npm
yum_remove epel-release-7-7
rm /etc/yum.repos.d/epel.repo.rpmsave

npm install bower -g
npm install gulp -g

http_proxy=$PROXY curl -sO http://www.mirrorservice.org/sites/ftp.apache.org/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
tar -xzf apache-maven-3.3.9-bin.tar.gz
mv apache-maven-3.3.9 /usr/local
ln -sf /usr/local/apache-maven-3.3.9/bin/mvn /usr/local/bin

mkdir -p /home/demo/.m2
cp settings.xml /home/demo/.m2
chown -R demo:demo /home/demo/.m2

### Download and install JBDS
# http://download.eng.brq.redhat.com/released/jbdevstudio/8.1.0/jboss-devstudio-8.1.0.GA-installer-standalone.jar
curl -sO http://$APILISTENER/static/isos/devstudio-10.0.0.GA-installer-standalone.jar
java -jar devstudio-10.0.0.GA-installer-standalone.jar InstallConfigRecord.xml
cp 'Red-Hat-JBoss-Developer-Studio-10.0.0.GA.desktop' /usr/share/applications
install -m 0755 -o demo 'Red-Hat-JBoss-Developer-Studio-10.0.0.GA.desktop' /home/demo/Desktop

firefox_set_homepage http://localhost:8080/
99 changes: 99 additions & 0 deletions layers/rhel-server-7:gui:jbds-10/@target/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/SETTINGS/1.0.0" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<proxies>
</proxies>

<profiles>
<profile>
<id>jboss-eap-repository</id>
<activation>
<property>
<name>com.redhat.xpaas.repo.redhatga</name>
<value/>
</property>
</activation>
<repositories>
<repository>
<id>jboss-eap-repository</id>
<url>https://maven.repository.redhat.com/ga/all</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jboss-eap-plugin-repository</id>
<url>https://maven.repository.redhat.com/ga/all</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>jboss-community-repository</id>
<activation>
<property>
<name>com.redhat.xpaas.repo.jbossorg</name>
<value/>
</property>
</activation>
<repositories>
<repository>
<id>jboss-community-repository</id>
<url>https://repository.jboss.org/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jboss-community-plugin-repository</id>
<url>https://repository.jboss.org/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>securecentral</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>securecentral</activeProfile>
<activeProfile>jboss-eap-repository</activeProfile>
</activeProfiles>
</settings>
11 changes: 11 additions & 0 deletions layers/rhel-server-7:gui:jbds-10/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: JBoss Developer Studio 10 plus tools image
maintainers:
- James Falkner <[email protected]>
description: |
This image provides a base installation of JBoss Developer Studio plus
developer tools: OpenJDK, Maven, Git, frontend tools and other supporting tools
like Ansible, HTTPD Tools, bower, node.js, npm, and JBoss Developer Studio 10.
You must put devstudio-10.0.0.GA-installer-standalone.jar into the isos directory!
layer:
cpus: 2
mem: 4096
43 changes: 43 additions & 0 deletions layers/rhel-server-7:gui:jbds-10:eap7lab/@docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<title>EAP 7 Developer Lab</title>

<xmp style="display:none;">
## Description

This image provides tools for the EAP 7 Developer Lab

By default this image requires 2 CPU(s) and 4096MB RAM.

<!-- HEADER -->

## Getting started

Read the lab [instructions](file:///home/demo/exercises/README.adoc)!

<!-- FOOTER -->

## VM image maintainer(s)

- James Falkner &lt;[[email protected]](mailto:[email protected])&gt;

## Please contribute to this lab!

Questions, comments, bug reports, feature requests, patches, pull requests and
cake are all welcomed on [GitHub](http://github.com/RedHatEMEA/demobuilder) or
to [[email protected]](mailto:[email protected]).

If sending a bug report, please include the contents of
[/etc/demobuilder](/etc/demobuilder), as this will indicate the builds that were
used to create the VM image.
</xmp>

<script src="strapdown/v/0.2/strapdown.js"></script>
<script type="text/javascript">
var spans = document.getElementsByTagName('span');
for (var i = 0; i < spans.length; i++) {
spans[i].className = "pln"
}
</script>

</html>
1 change: 1 addition & 0 deletions layers/rhel-server-7:gui:jbds-10:eap7lab/@docs/strapdown
53 changes: 53 additions & 0 deletions layers/rhel-server-7:gui:jbds-10:eap7lab/@target/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/bash -ex

. vm-functions

EXTENSIONS_SYSTEM='/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/'
EXTENSIONS_USER=`echo ~/.mozilla/firefox/*.default/extensions/`

# -------------------------- xpi tools ---------------------------------

get_addon_id_from_xpi () { #path to .xpi file
addon_id_line=`unzip -p $1 install.rdf | egrep '<em:id>' -m 1`
addon_id=`echo $addon_id_line | sed "s/.*>\(.*\)<.*/\1/"`
echo "$addon_id"
}

get_addon_name_from_xpi () { #path to .xpi file
addon_name_line=`unzip -p $1 install.rdf | egrep '<em:name>' -m 1`
addon_name=`echo $addon_name_line | sed "s/.*>\(.*\)<.*/\1/"`
echo "$addon_name"
}

# Installs .xpi given by relative path
# to the extensions path given
install_addon () {
xpi="${PWD}/${1}"
extensions_path=$2
new_filename=`get_addon_id_from_xpi $xpi`.xpi
new_filepath="${extensions_path}${new_filename}"
addon_name=`get_addon_name_from_xpi $xpi`
if [ -f "$new_filepath" ]; then
echo "File already exists: $new_filepath"
echo "Skipping installation for addon $addon_name."
else
cp "$xpi" "$new_filepath"
fi
}

git clone https://github.com/RedHat-Middleware-Workshops/eap7-modernization /home/demo/exercises
cp -r software /home/demo
chown -R demo:demo /home/demo/software /home/demo/exercises

# install firefox asciidoctor plugin
https_proxy=$PROXY curl -sLO https://github.com/asciidoctor/asciidoctor-firefox-addon/releases/download/v0.5.4/asciidoctor-firefox-addon-0.5.4-signed.xpi
install_addon asciidoctor-firefox-addon-0.5.4-signed.xpi "$EXTENSIONS_SYSTEM"
rm -rf asciidoctor-firefox-addon-0.5.4-signed.xpi
firefox_set_homepage file:///home/demo/exercises/README.adoc

# warm up maven cache to avoid massive downloading of the internet for workshop participants
su - demo -c "cd /home/demo/exercises/projects/02_frontend; mvn dependency:resolve dependency:go-offline dependency:resolve-plugins"
su - demo -c "cd /home/demo/exercises/projects/03_batch/batch-processing; mvn dependency:resolve dependency:go-offline dependency:resolve-plugins"
su - demo -c "cd /home/demo/exercises/projects/04_messaging/helloworld-mdb; mvn dependency:resolve dependency:go-offline dependency:resolve-plugins"
su - demo -c "cd /home/demo/exercises/projects/04_messaging/helloworld-jms; mvn dependency:resolve dependency:go-offline dependency:resolve-plugins"
su - demo -c "cd /home/demo/exercises/projects/05_concurrency/managed-executor-service; mvn dependency:resolve dependency:go-offline dependency:resolve-plugins"
8 changes: 8 additions & 0 deletions layers/rhel-server-7:gui:jbds-10:eap7lab/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: EAP 7 Developer Workshop
maintainers:
- James Falkner <[email protected]>
description: |
This image provides tools for the EAP 7 Developer Workshop. you must place the EAP 7 distribution file jboss-eap-7.0.0.zip into the @target/software/ directory.
layer:
cpus: 2
mem: 4096
4 changes: 2 additions & 2 deletions targets/aws/@target/install
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
register_channels rhel-7-server-rpms rhel-7-server-rh-common-rpms
yum_install cloud-init

yum_install $MIRROR_FEDORA/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
yum_install $MIRROR_FEDORA/pub/epel/7/x86_64/e/epel-release-7-7.noarch.rpm
sed -i -e "s!^#baseurl=http://download.fedoraproject.org/!baseurl=$MIRROR_FEDORA/!; s/^mirrorlist=/#mirrorlist=/" /etc/yum.repos.d/epel.repo
yum_install fio
yum_remove epel-release-7-5
yum_remove epel-release-7-7
rm /etc/yum.repos.d/epel.repo.rpmsave

systemctl enable cloud-init.service
Expand Down