-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(google): Fixed codelab image construction (#1611)
Moved codelab configuration script from pylib/spinnaker to google/codelab since it isnt really part of the runtime. Reintroduced first_codelab_boot because there are deployment-time configurations needed.
- Loading branch information
Eric Wiseblatt
authored
Apr 28, 2017
1 parent
749fff5
commit 0fb701d
Showing
3 changed files
with
33 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Copyright 2017 Google Inc. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
PYTHONPATH=/opt/spinnaker/pylib python /opt/spinnaker/install/codelab_config.py | ||
echo "debianRepository: http://$(hostname):9999/ trusty main" \ | ||
> /opt/spinnaker/config/rosco-local.yml | ||
chown spinnaker:spinnaker /opt/spinnaker/config/rosco-local.yml | ||
|
||
cat <<EOF > /opt/spinnaker/config/clouddriver-local.yml | ||
credentials: | ||
challengeDestructiveActionsEnvironments: | ||
EOF | ||
chown spinnaker:spinnaker /opt/spinnaker/config/clouddriver-local.yml | ||
|
||
/opt/spinnaker/install/first_google_boot.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters