Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
typo3
CI
testing-infrastructure
Commits
638cabf3
Commit
638cabf3
authored
Oct 24, 2016
by
Christian Kuhn
Browse files
[TASK] Add bamboo agent php53
parent
4eb6857c
Changes
9
Hide whitespace changes
Inline
Side-by-side
bamboo-remote-agent-php53/Dockerfile
0 → 100644
View file @
638cabf3
FROM
typo3gmbh/php53:1.0
MAINTAINER
TYPO3 GmbH <info@typo3.com>
ADD
. /pd_build
RUN
/pd_build/install.sh
CMD
["/sbin/my_init"]
bamboo-remote-agent-php53/bamboo-agent.sh
0 → 100755
View file @
638cabf3
#!/bin/bash
set
-e
source
/pd_build/buildconfig
set
-x
# Create bamboo work directory
mkdir
-p
/srv/bamboo-agent-home
chmod
0775 /srv/bamboo-agent-home
chown
bamboo:bamboo /srv/bamboo-agent-home
# Install bamboo remote agent
curl
-SL
--progress-bar
https://bamboo.typo3.com/agentServer/agentInstaller/atlassian-bamboo-agent-installer-5.12.2.1.jar
-o
/tmp/bamboo-installer.jar
/usr/bin/java
-Dbamboo
.home
=
/srv/bamboo-agent-home
-jar
/tmp/bamboo-installer.jar https://bamboo.typo3.com/agentServer
install
chown
-R
bamboo:bamboo /srv/bamboo-agent-home
rm
-f
/tmp/bamboo-installer.jar
## Configure properties
cp
-a
/pd_build/config/bamboo/bamboo-capabilities.properties /srv/bamboo-agent-home/bin
## Enable agent
cp
-a
/pd_build/runit/bamboo-agent /etc/service/bamboo-agent
bamboo-remote-agent-php53/buildconfig
0 → 100644
View file @
638cabf3
export LC_ALL=C
export DEBIAN_FRONTEND=noninteractive
function minimal_apt_get_install()
{
if [[ ! -e /var/lib/apt/lists/lock ]]; then
apt-get update
fi
apt-get install -y --no-install-recommends "$@"
}
bamboo-remote-agent-php53/config/bamboo/bamboo-capabilities.properties
0 → 100644
View file @
638cabf3
system.phpVersion
=
5.3
bamboo-remote-agent-php53/finalize.sh
0 → 100755
View file @
638cabf3
#!/bin/bash
set
-e
source
/pd_build/buildconfig
set
-x
apt-get clean
rm
-rf
\
/var/lib/apt/lists/
*
\
/tmp/
*
\
/var/tmp/
*
\
/usr/local/src/
*
\
/usr/include/php/20151012/ext/apcu/
\
#
rm
-rf
/pd_build
bamboo-remote-agent-php53/install.sh
0 → 100755
View file @
638cabf3
#!/bin/bash
set
-e
source
/pd_build/buildconfig
set
-x
/pd_build/prepare.sh
/pd_build/bamboo-agent.sh
/pd_build/finalize.sh
bamboo-remote-agent-php53/prepare.sh
0 → 100755
View file @
638cabf3
#!/bin/bash
set
-e
source
/pd_build/buildconfig
set
-x
## Create a user for the bamboo agent.
addgroup
--gid
9999 bamboo
adduser
--uid
9999
--gid
9999
--disabled-password
--gecos
"Bamboo Remote Agent"
bamboo
bamboo-remote-agent-php53/runit/bamboo-agent/log/run
0 → 100755
View file @
638cabf3
#!/bin/sh
mkdir
-p
/var/log/bamboo-agent
exec
svlogd
-tt
/var/log/bamboo-agent
bamboo-remote-agent-php53/runit/bamboo-agent/run
0 → 100755
View file @
638cabf3
#!/bin/sh
exec
2>&1
exec
/sbin/setuser bamboo /srv/bamboo-agent-home/bin/bamboo-agent.sh console
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment