This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #211 from IBM/release_v1.2.0
Release v1.2.0
- Loading branch information
Showing
56 changed files
with
4,953 additions
and
2,607 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
FROM golang:1.9.1 | ||
WORKDIR /go/src/github.com/IBM/ubiquity-k8s/ | ||
COPY . . | ||
RUN go get -v github.com/Masterminds/glide | ||
ADD glide.yaml . | ||
RUN glide up --strip-vendor | ||
COPY . . | ||
RUN CGO_ENABLED=1 GOOS=linux go build -tags netgo -v -a --ldflags '-w -linkmode external -extldflags "-static"' -installsuffix cgo -o ubiquity-k8s-flex cmd/flex/main/cli.go | ||
|
||
|
||
FROM alpine:3.7 | ||
RUN apk --no-cache add ca-certificates=20171114-r0 | ||
RUN apk --update add logrotate | ||
ENV UBIQUITY_PLUGIN_VERIFY_CA=/var/lib/ubiquity/ssl/public/ubiquity-trusted-ca.crt | ||
WORKDIR /root/ | ||
COPY --from=0 /go/src/github.com/IBM/ubiquity-k8s/deploy/k8s_deployments/ubiquity_logrotate /etc/logrotate.d/ | ||
COPY --from=0 /go/src/github.com/IBM/ubiquity-k8s/ubiquity-k8s-flex . | ||
COPY --from=0 /go/src/github.com/IBM/ubiquity-k8s/deploy/k8s_deployments/setup_flex.sh . | ||
COPY --from=0 /go/src/github.com/IBM/ubiquity-k8s/scripts/setup_flex.sh . | ||
COPY --from=0 /go/src/github.com/IBM/ubiquity-k8s/LICENSE . | ||
COPY --from=0 /go/src/github.com/IBM/ubiquity-k8s/scripts/notices_file_for_ibm_storage_enabler_for_containers ./NOTICES |
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
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
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,40 @@ | ||
# Contribution guide | ||
The Ubiquity team accepts contributions from IBM employees using GitHub pull requests. | ||
Pushing to master is not allowed. Any direct push to master might interfere with our CI process. | ||
|
||
If you want to make a change, create your own branch out of `dev` branch, make your changes. Once you are done, submit a pull request to the `dev` branch. When accepted, the changes will make their way into `master` after we merge. | ||
|
||
Verify your changes before submitting a pull request by running the unit, integration and acceptance tests. See the testing section for details. In addition, make sure that your changes are covered by existing or new unit testing. | ||
|
||
# Build prerequisites | ||
* Install [golang](https://golang.org/) (>=1.9.1). | ||
* Install [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git). | ||
* Install gcc. | ||
* Configure go. GOPATH environment variable must be set correctly before starting the build process. Create a new directory and set it as GOPATH. | ||
|
||
### Download and build source code | ||
* Configure ssh-keys for github.com. go tools require passwordless ssh access to github. If you have not set up ssh keys for your github profile, follow these [instructions](https://help.github.com/enterprise/2.7/user/articles/generating-an-ssh-key/) before you proceed. | ||
* Build Ubiquity Provisioner and FlexVolume from source. | ||
```bash | ||
mkdir -p $HOME/workspace | ||
export GOPATH=$HOME/workspace | ||
mkdir -p $GOPATH/src/github.com/IBM | ||
cd $GOPATH/src/github.com/IBM | ||
git clone [email protected]:IBM/ubiquity-k8s.git | ||
cd ubiquity-k8s | ||
./scripts/run_glide_up | ||
./scripts/build_provisioner | ||
./scripts/build_flex_driver | ||
``` | ||
# Testing Ubiquity Provisioner and FlexVolume | ||
|
||
Run the tests: | ||
```bash | ||
./scripts/run_glide_up | ||
./scripts/run_units.sh | ||
``` | ||
|
||
# Squash and merge | ||
|
||
Upon the merge (by either you or your reviewer), all commits on the review branch must represent meaningful milestones or units of work. Use commit message to detail the development and review process. | ||
Before merging a PR, squash any fix review feedback, typo, and rebased sorts of commits. |
Oops, something went wrong.