Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Having existing db and config for demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
varshavaradarajan committed Mar 17, 2017
1 parent 13798d6 commit 6b0d8a6
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
38 changes: 38 additions & 0 deletions config/cruise-config.xml
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<cruise xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cruise-config.xsd" schemaVersion="89">
<server artifactsdir="artifacts" agentAutoRegisterKey="38f49211-8162-4dc6-98d8-752584b3e48a" commandRepositoryLocation="default" serverId="a601888b-e5a4-40c7-befc-ee839572d694" />
<pipelines group="first">
<pipeline name="rogue_one">
<materials>
<git url="https://github.com/gocd-contrib/getting-started-repo.git" />
</materials>
<stage name="defaultStage">
<jobs>
<job name="defaultJob">
<tasks>
<exec command="./build" />
</tasks>
</job>
</jobs>
</stage>
</pipeline>
<pipeline name="frankenstein">
<materials>
<git url="https://github.com/gocd/api.go.cd.git" />
</materials>
<stage name="defaultStage">
<jobs>
<job name="defaultJob">
<tasks>
<ant />
</tasks>
</job>
</jobs>
</stage>
</pipeline>
</pipelines>
<agents>
<agent hostname="agent-smith" ipaddress="127.0.0.1" uuid="df49956e-0cce-4990-bdf5-c0a5894ceef7" />
</agents>
</cruise>

Binary file added db/h2db/cruise.h2.db
Binary file not shown.
20 changes: 20 additions & 0 deletions go-server-demo-packer.json
Expand Up @@ -75,6 +75,26 @@
"sudo wget -q https://download.gocd.io/gocd.repo -O /etc/yum.repos.d/gocd.repo",
"sudo yum install -y go-server go-agent"
]
},
{
"type": "file",
"source": "config",
"destination": "/tmp"
},
{
"type": "file",
"source": "db",
"destination": "/tmp"
},
{
"type": "shell",
"inline": [
"sudo cp -a /tmp/config/. /etc/go",
"sudo cp -r /tmp/db /var/lib/go-server/",
"sudo chown -R go:go /etc/go /var/lib/go-server/db",
"sudo chmod 770 /etc/go",
"sudo chmod 775 /var/lib/go-server/db"
]
}
]
}

0 comments on commit 6b0d8a6

Please sign in to comment.