Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change from UPL to Public Domain dedication. #866

Merged
merged 1 commit into from
May 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 11 additions & 27 deletions OracleCloudInfrastructure/terraform-oci/LICENSE
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved.

The Universal Permissive License (UPL), Version 1.0

Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this
software, associated documentation and/or data (collectively the "Software"), free of charge and under any and
all copyright rights in the Software, and any and all patent rights owned or freely licensable by each licensor
hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, or
(ii) the Larger Works (as defined below), to deal in both

(a) the Software, and
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if one is included with the Software
(each a “Larger Work” to which the Software is contributed by such licensors),

without restriction, including without limitation the rights to copy, create derivative works of, display,
perform, and distribute the Software and make, use, sell, offer for sale, import, export, have made, and have
sold the Software and the Larger Work(s), and to sublicense the foregoing rights on either these or other terms.

This license is subject to the following condition:
The above copyright notice and either this complete permission notice or at a minimum a reference to the UPL must
be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
PUBLIC DOMAIN DEDIDCATION

This Dockerfile was created by Oracle and has been dedicated to the public
domain by Oracle. The scope of Oracle's public domain dedication is limited to
the content of the Dockerfile itself and does not extend to any other content
in Docker images that may be created using the Dockerfile. Such Docker images,
including any automated builds that are created and made available by Oracle,
may contain material that is subject to copyright and other intellectual
property rights of Oracle and/or third parties, which is licensed under terms
specified in the applicable material and/or in the source code for that
material.
46 changes: 12 additions & 34 deletions OracleCloudInfrastructure/terraform-oci/README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,24 @@
# Containerized Terraform for OCI provider

[Terraform](https://www.terraform.io/) is a powerful tool for building, changing,
and versioning infrastructure safely and efficiently. It gives you agility and
fine-grained control over all your infrastructure resources, you can create
configuration files to describe your resources in a human-readable format.
Terraform can manage existing and popular service providers as well as custom
in-house solutions.

Oracle provides an open source [Terraform provider for Oracle Cloud
Infrastructure](https://github.com/oracle/terraform-provider-oci) which you can
use to manage all your Cloud infrastructure resources (Network, Compute,
Storage, etc).
[Terraform](https://www.terraform.io/) is a powerful tool for building, changing, and versioning infrastructure safely and efficiently. It gives you agility and fine-grained control over all your infrastructure resources, you can create configuration files to describe your resources in a human-readable format. Terraform can manage existing and popular service providers as well as custom in-house solutions.

Oracle provides an open source [Terraform provider for Oracle Cloud Infrastructure](https://github.com/oracle/terraform-provider-oci) which you can use to manage all your Cloud infrastructure resources (Network, Compute, Storage, etc).

This image was inspired by https://medium.com/oracledevs/containerized-terraform-for-oci-provider-2deb917783fa

## Building the image

This image has no external dependencies. It can be built using the standard
`docker build` command, as follows:
This image has no external dependencies. It can be built using the standard`docker build` command, as follows:

```
# docker build -t oracle/terraform-oci:2.0.6 .
```

### Manually specifying versions

By default, the image will install the latest available version of Terraform
and the Terraform provider for OCI. If you want to install a specific version
of either of these, you can pass a specific `--build-arg` during the build
process of the image.
By default, the image will install the latest available version of Terraform and the Terraform provider for OCI. If you want to install a specific version of either of these, you can pass a specific `--build-arg` during the build process of the image.

Here is an example command that uses a specific version of Terraform and the
Provider for OCI:
Here is an example command that uses a specific version of Terraform and the Provider for OCI:

```
# docker build -t oracle/terraform-oci:2.0.6 \
Expand All @@ -40,15 +27,11 @@ Provider for OCI:
.
```

Note that the argument includes the inital hypen seperator. To find out which versions
are available, check the [Oracle Linux 7 Developer
Channel](http://yum.oracle.com/repo/OracleLinux/OL7/developer/x86_64/index.html)
on the [Oracle Linux Yum Server](http://yum.oracle.com).
Note that the argument includes the inital hypen seperator. To find out which versions are available, check the [Oracle Linux 7 Developer Channel](http://yum.oracle.com/repo/OracleLinux/OL7/developer/x86_64/index.html) on the [Oracle Linux Yum Server](http://yum.oracle.com).

## Running terraform
## Running Terraform

Create a directory to store your Terraform configuration files and specify that
directory as the source of the `VOLUME` when starting the container:
Create a directory to store your Terraform configuration files and specify that directory as the source of the `VOLUME` when starting the container:

```
docker run \
Expand Down Expand Up @@ -78,19 +61,14 @@ Terraform has been successfully initialized!
```
## Create an alias for terraform

To simplify working with Terraform inside a container, create an alias
(or a shell script) so that you can access Terraform as if it were running
locally on your machine:
To simplify working with Terraform inside a container, create an alias (or a shell script) so that you can access Terraform as if it were running locally on your machine:

```
$ alias terraform-oci="docker run \
--interactive --tty --rm \
--volume "$PWD":/data \
oracle/terraform-oci:2.0.6 terraform"
```
## License

All files required to build this Docker images are, unless otherwise noted, released under [UPL 1.0](https://oss.oracle.com/licenses/upl/) license.
## Public Domain Dedication

## Copyright
Copyright (c) 2014-2018 Oracle and/or its affiliates. All rights reserved.
This Dockerfile was created by Oracle and has been dedicated to the public domain by Oracle. The scope of Oracle's public domain dedication is limited to the content of the Dockerfile itself and does not extend to any other content in Docker images that may be created using the Dockerfile. Such Docker images, including any automated builds that are created and made available by Oracle, may contain material that is subject to copyright and other intellectual property rights of Oracle and/or third parties, which is licensed under terms specified in the applicable material and/or in the source code for that material.