mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-04 10:09:42 +00:00
bug5938: use sym links for hudson slave setup
This commit is contained in:
1 parent
1e5caa6f7d
commit
26cca5b8ed
6 files changed
+10
-62
No files matched your search
@@ -0,0 +1,5 @@
|
||||
Deploy the .mount and .service units to /etc/systemd/system.
|
||||
Deploy the imageupgrade script to /usr/local/bin,
|
||||
furthermore the ../imageupgrade_functions.sh has to go to /usr/local/bin, best as symbolic link to files in git.
|
||||
|
||||
See the script in wiki/howto/development/ci.md that shows how to set up such an instance from scratch.
|
||||
@@ -1,5 +0,0 @@
|
||||
Deploy the .mount and .service units to /etc/systemd/system.
|
||||
Deploy the imageupgrade script to /usr/local/bin,
|
||||
furthermore the ../imageupgrade_functions.sh has to go to /usr/local/bin, best as symbolic link to files in git.
|
||||
|
||||
See the script in wiki/howto/development/ci.md that shows how to set up such an instance from scratch.
|
||||
+1
@@ -0,0 +1 @@
|
||||
../environments_scripts/hudson_slave/README
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script to deploy on an instance that has an ephemeral volume as /dev/nvme0n1 (adjust env var PARTITION if different)
|
||||
# Ensures the partition is xfs-formatted, any existing partition contents will be overwritten if formatted otherwise.
|
||||
# An existing xfs partition will be left alone.
|
||||
. imageupgrade_functions.sh
|
||||
|
||||
get_ec2_user_data() {
|
||||
/usr/bin/ec2metadata --user
|
||||
}
|
||||
|
||||
METADATA=$( get_ec2_user_data )
|
||||
echo "Metadata: ${METADATA}"
|
||||
if echo "${METADATA}" | grep -q "^image-upgrade$"; then
|
||||
echo "Image upgrade..."
|
||||
LOGON_USER_HOME=/home/ubuntu
|
||||
run_apt_update_upgrade
|
||||
download_and_install_latest_sap_jvm_8
|
||||
run_git_pull
|
||||
finalize
|
||||
fi
|
||||
@@ -0,0 +1 @@
|
||||
../environments_scripts/hudson_slave/files/usr/local/bin/imageupgrade
|
||||
@@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=Check for image-upgrade EC2 user data and triggers an image upgrade if found
|
||||
Requires=-.mount cloud-init.service
|
||||
After=-.mount cloud-init.service networking.service systemd-networkd.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=true
|
||||
ExecStart=/usr/local/bin/imageupgrade
|
||||
@@ -0,0 +1 @@
|
||||
../environments_scripts/hudson_slave/files/etc/systemd/system/imageupgrade.service
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Expects an ephemeral volume to have been mounted at /ephemeral/data and
|
||||
# mounts that with a "bind" mount to /home/hudson/workspace.
|
||||
# The directory is then chown/chgrp'ed to hudson
|
||||
if [ -e /dev/nvme1n1 ]; then
|
||||
mkfs.ext4 /dev/nvme1n1
|
||||
mount /dev/nvme1n1 /home/hudson/workspace
|
||||
else
|
||||
mount -o bind /ephemeral/data /home/hudson/workspace
|
||||
fi
|
||||
chgrp hudson /home/hudson/workspace
|
||||
chown hudson /home/hudson/workspace
|
||||
@@ -0,0 +1 @@
|
||||
../environments_scripts/hudson_slave/files/usr/local/bin/mounthudsonworkspace
|
||||
@@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=Mount Hudson Workspace
|
||||
After=ephemeral-data.mount
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/mounthudsonworkspace
|
||||
RemainAfterExit=true
|
||||
StandardOutput=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1 @@
|
||||
../environments_scripts/hudson_slave/files/etc/systemd/system/mounthudsonworkspace.service
|
||||
Reference in new issue
Block a user