Skip to content

Commit 9cd93a6

Browse files
committed
Merge remote-tracking branch 'stembuild/windows-2019' into windows-2019
2 parents e213da6 + 8cd5932 commit 9cd93a6

File tree

1,948 files changed

+885371
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,948 files changed

+885371
-4
lines changed

.envrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

.envrc.template

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/usr/bin/env bash
2+
3+
########################################
4+
# #
5+
# Construct Intregration Test Config #
6+
# #
7+
########################################
8+
9+
# VM credentials for an existing VM, or to configure a created VM
10+
export VM_USERNAME=
11+
export VM_PASSWORD=
12+
13+
# Version of stembuild to build in integration tests ([2019|1803|1709].X.X, the major must match the server version of ova)
14+
export STEMBUILD_VERSION=
15+
16+
# When using an existing VM, configure the IP
17+
export EXISTING_VM_IP=
18+
19+
# If existing VM not configured, provide configuration for creating a VM in vCenter
20+
# export GOVC_DATASTORE=
21+
# export GOVC_NETWORK=
22+
# export GOVC_RESOURCE_POOL=
23+
# export VCENTER_VM_FOLDER=
24+
# export GOVC_INSECURE=
25+
# export GOVC_URL=
26+
# export NETWORK_GATEWAY=
27+
# export SUBNET_MASK=
28+
# export VM_NAME_PREFIX=
29+
# export VM_FOLDER=
30+
31+
# If using a local OVA file, provide OVA_FILE
32+
# export OVA_FILE=/tmp/1709.ova
33+
34+
# If using an OVA file stored in S3, provide download details
35+
# export OVA_SOURCE_S3_REGION=
36+
# export OVA_SOURCE_S3_BUCKET=
37+
# export OVA_SOURCE_S3_FILENAME=
38+
# export AWS_ACCESS_KEY_ID=
39+
# export AWS_SECRET_ACCESS_KEY=
40+
41+
# If using a defined IP, set USER_PROVIDED_IP
42+
# export USER_PROVIDED_IP=
43+
44+
# When using a concourse style lock pool, provide configuration
45+
# export LOCK_PRIVATE_KEY=
46+
# export IP_POOL_GIT_URI=
47+
# export IP_POOL_NAME=

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.go text eol=lf

.github/workflows/go.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: go
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
lint:
8+
strategy:
9+
matrix:
10+
os: [windows-2019, ubuntu-latest]
11+
runs-on: ${{ matrix.os }}
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-go@v5
15+
with:
16+
go-version-file: stembuild/go.mod
17+
- name: Provide `StemcellAutomation.zip` for `go:embed` consumption in `assets` package
18+
run: |
19+
make generate-fake-stemcell-automation
20+
working-directory: stembuild
21+
- uses: golangci/golangci-lint-action@v8
22+
with:
23+
working-directory: stembuild
24+
test:
25+
strategy:
26+
matrix:
27+
os: [windows-2019, ubuntu-latest]
28+
runs-on: ${{ matrix.os }}
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-go@v5
32+
with:
33+
go-version-file: stembuild/go.mod
34+
- name: Provide `StemcellAutomation.zip` for `go:embed` consumption in `assets` package
35+
run: |
36+
make generate-fake-stemcell-automation
37+
working-directory: stembuild
38+
# skip specs for "packager", "ovftool" because "ovftool" be installed
39+
- run: |
40+
go run github.com/onsi/ginkgo/v2/ginkgo run -r --keep-going --randomize-all --randomize-suites --skip-package integration,iaas_cli,ovftool,packager
41+
working-directory: stembuild

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
.DS_Store
12
.idea
3+
.envrc
24
.vscode
35

6+
stembuild/stembuild
7+
stembuild/stembuild.exe
8+
stembuild/StemcellAutomation.zip
9+
stembuild/LGPO.zip
10+
411
# Stemcell Builder
512
packer_cache
613
packer-vmware-iso

.golangci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: "2"
2+
3+
linters:
4+
default: standard
5+
6+
settings:
7+
errcheck:
8+
check-blank: true # assignment to blank identifier: `_ := someFunc()`.
9+
10+
formatters:
11+
enable:
12+
- goimports

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Apache License
1+
Apache License
22
Version 2.0, January 2004
33
http://www.apache.org/licenses/
44

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ This project is licensed to you under the Apache License, Version 2.0 (the "Lice
44
You may not use this project except in compliance with the License.
55

66
This project may include a number of subcomponents with separate copyright notices
7-
and license terms. Your use of these subcomponents is subject to the terms and
7+
and license terms. Your use of these subcomponents is subject to the terms and
88
conditions of the subcomponent's license, as noted in the LICENSE file.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env bash
2+
set -eu -o pipefail
3+
4+
REPO_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
5+
6+
: "${OPENSSH_ZIP?"Please see README.md on where to obtain this."}"
7+
: "${BOSH_PSMODULES_ZIP?"Please see README.md on where to obtain this."}"
8+
: "${AGENT_ZIP?"Please see README.md on how to construct this."}"
9+
: "${DEPS_JSON?"Please see README.md on how to construct this."}"
10+
11+
TEMP_DIR=$(mktemp -d)
12+
13+
cp "${OPENSSH_ZIP}" "${TEMP_DIR}/OpenSSH-Win64.zip"
14+
cp "${BOSH_PSMODULES_ZIP}" "${TEMP_DIR}/bosh-psmodules.zip"
15+
cp "${AGENT_ZIP}" "${TEMP_DIR}/agent.zip"
16+
cp "${DEPS_JSON}" "${TEMP_DIR}/deps.json"
17+
for file in "${REPO_ROOT}"/stembuild/stemcell-automation/*ps1; do
18+
if ! [[ "${file}" =~ .*\.Tests\.ps1 ]]; then
19+
cp "${file}" "${TEMP_DIR}"
20+
fi
21+
done
22+
rm -f "${REPO_ROOT}/stembuild/assets/StemcellAutomation.zip"
23+
24+
zip -rj "${REPO_ROOT}/stembuild/assets/StemcellAutomation.zip" "${TEMP_DIR}"
25+
26+
rm -r "${TEMP_DIR}"

stembuild/CONTRIBUTING.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Contributing to Pivotal Projects
2+
3+
We’d love to accept your patches and contributions to this project. Please review the following guidelines you'll need to follow in order to make a contribution.
4+
5+
## Contributor License Agreement
6+
7+
All contributors to this project must have a signed Contributor License Agreement (**"CLA"**) on file with us. The CLA grants us the permissions we need to use and redistribute your contributions as part of the project; you or your employer retain the copyright to your contribution. Head over to https://cla.pivotal.io/ to see your current agreement(s) on file or to sign a new one.
8+
9+
We generally only need you (or your employer) to sign our CLA once and once signed, you should be able to submit contributions to any Pivotal project.
10+
11+
Note: if you would like to submit an "_obvious fix_" for something like a typo, formatting issue or spelling mistake, you may not need to sign the CLA. Please see our information on [obvious fixes](https://cla.pivotal.io/about#obvious-fix) for more details.
12+
13+
## Code reviews
14+
15+
All submissions, including submissions by project members, require review and we use GitHub's pull requests for this purpose. Please consult [GitHub Help](https://help.github.com/articles/about-pull-requests/) if you need more information about using pull requests.
16+
17+

0 commit comments

Comments
 (0)