Skip to content

Commit

Permalink
Merge pull request #57 from jmarhee/rebrand-rename-driver
Browse files Browse the repository at this point in the history
Rebrand rename driver
  • Loading branch information
jmarhee authored Feb 18, 2021
2 parents 5d8ef3c + 6fafb57 commit e0a67cb
Show file tree
Hide file tree
Showing 14 changed files with 109 additions and 105 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bin/docker-machine-driver-*
docker-machine-driver-*
checksums
.idea/
.vscode/
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ builds:
- env:
- CGO_ENABLED=0
- GO111MODULE=on
binary: docker-machine-driver-packet
binary: docker-machine-driver-metal
ldflags:
- -X github.com/packethost/docker-machine-driver-packet/pkg/drivers/packet/packet.version={{.Version}}
- -X github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal/metal.version={{.Version}}
goos:
- windows
- darwin
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
See <https://github.com/packethost/docker-machine-driver-packet/releases>
See <https://github.com/equinix/docker-machine-driver-metal/releases>
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at support@packet.com. All
reported by contacting the project team at support@equinixmetal.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
Thx for your interest! We're so glad you're here.

### Important Resources
- bugs: [https://github.com/packethost/docker-machine-driver-packet/issues](https://github.com/packethost/docker-machine-driver-packet/issues)
- bugs: [https://github.com/equinix/docker-machine-driver-metal/issues](https://github.com/equinix/docker-machine-driver-metal/issues)

### Code of Conduct
Available via [https://github.com/packethost/docker-machine-driver-packet/blob/master/.github/CODE_OF_CONDUCT.md](https://github.com/packethost/docker-machine-driver-packet/blob/master/.github/CODE_OF_CONDUCT.md)
Available via [https://github.com/equinix/docker-machine-driver-metal/blob/master/.github/CODE_OF_CONDUCT.md](https://github.com/equinix/docker-machine-driver-metal/blob/master/.github/CODE_OF_CONDUCT.md)

### How to Submit Change Requests
Please submit change requests and / or features via [Issues](https://github.com/packethost/docker-machine-driver-packet/issues). There's no guarantee it'll be changed, but you never know until you try. We'll try to add comments as soon as possible, though.
Please submit change requests and / or features via [Issues](https://github.com/equinix/docker-machine-driver-metal/issues). There's no guarantee it'll be changed, but you never know until you try. We'll try to add comments as soon as possible, though.

### How to Report a Bug
Bugs are problems in code, in the functionality of an application or in its UI design; you can submit them through [Issues](https://github.com/packethost/docker-machine-driver-packet/issues) as well.
Bugs are problems in code, in the functionality of an application or in its UI design; you can submit them through [Issues](https://github.com/equinix/docker-machine-driver-metal/issues) as well.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2018, Packet Host, Inc.
Copyright (c) 2021, Equinix Metal, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default: build

mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
github_user := "packethost"
github_user := "equinix"
project := "github.com/$(github_user)/$(current_dir)"
bin_suffix := ""

Expand All @@ -17,7 +17,7 @@ containerbuild:
make build

clean:
rm -r docker-machine-driver-packet bin/docker-machine-driver-packet
rm -r docker-machine-driver-metal bin/docker-machine-driver-metal

compile:
GO111MODULE=on GOGC=off CGOENABLED=0 go build -ldflags "-s"
Expand Down
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# docker-machine-driver-packet
# docker-machine-driver-metal

[![GitHub release](https://img.shields.io/github/release/packethost/docker-machine-driver-packet/all.svg?style=flat-square)](https://github.com/packethost/docker-machine-driver-packet/releases)
[![Go Report Card](https://goreportcard.com/badge/github.com/packethost/docker-machine-driver-packet)](https://goreportcard.com/report/github.com/packethost/docker-machine-driver-packet)
[![Slack](https://slack.packet.com/badge.svg)](https://slack.packet.com)
[![Twitter Follow](https://img.shields.io/twitter/follow/packethost.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=packethost)
[![GitHub release](https://img.shields.io/github/release/equinix/docker-machine-driver-metal/all.svg?style=flat-square)](https://github.com/equinix/docker-machine-driver-metal/releases)
[![Go Report Card](https://goreportcard.com/badge/github.com/equinix/docker-machine-driver-metal)](https://goreportcard.com/report/github.com/equinix/docker-machine-driver-metal)
[![Slack](https://slack.equinixmetal.com/badge.svg)](https://slack.equinixmetal.com)
[![Twitter Follow](https://img.shields.io/twitter/follow/equinixmetal.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=equinixmetal)
![](https://img.shields.io/badge/Stability-Maintained-green.svg)

The [Packet](https://packet.com) cloud bare-metal machine driver for Docker.
The [Equinix Metal](https://metal.equinix.com) cloud bare-metal machine driver for Docker.

This repository is [Maintained](https://github.com/packethost/standards/blob/master/maintained-statement.md) meaning that this software is supported by Packet and its community - available to use in production environments.
This repository is [Maintained](https://github.com/packethost/standards/blob/master/maintained-statement.md) meaning that this software is supported by Equinix Metal and its community - available to use in production environments.

## Usage

Expand All @@ -17,7 +17,7 @@ You can provision bare-metal hosts once you have built and installed the docker-
Test that the installation worked by typing in:

```sh
docker-machine create --driver packet
docker-machine create --driver metal
```

### Example usage
Expand All @@ -28,18 +28,18 @@ This creates the following:
* in the EWR region (NJ)
* with Ubuntu 16.04
* in project $PROJECT
* Using $API_KEY - [get yours from the Portal](https://app.packet.net/users/me/api-keys)
* Using $API_KEY - [get yours from the Portal](https://console.equinix.com/users/me/api-keys)

```sh
$ docker-machine create sloth \
--driver packet --packet-api-key=$API_KEY --packet-os=ubuntu_16_04 --packet-project-id=$PROJECT --packet-facility-code "ewr1" --packet-plan "baremetal_0"
--driver metal --metal-api-key=$API_KEY --metal-os=ubuntu_16_04 --metal-project-id=$PROJECT --metal-facility-code "ewr1" --metal-plan "baremetal_0"

Creating CA: /home/alex/.docker/machine/certs/ca.pem
Creating client certificate: /home/alex/.docker/machine/certs/cert.pem
Running pre-create checks...
Creating machine...
(sloth) Creating SSH key...
(sloth) Provisioning Packet server...
(sloth) Provisioning Equinix Metal server...
(sloth) Created device ID $PROJECT, IP address 147.x.x.x
(sloth) Waiting for Provisioning...
Waiting for machine to be running, this may take a few minutes...
Expand Down Expand Up @@ -68,28 +68,28 @@ Pre-reqs: `docker-machine` and `make`

* Install the Golang SDK [https://golang.org/dl/](https://golang.org/dl/) (at least 1.11 required for [modules](https://github.com/golang/go/wiki/Modules) support

* Download the source-code with `git clone http://github.com/packethost/docker-machine-driver-packet.git`
* Download the source-code with `git clone http://github.com/equinix/docker-machine-driver-metal.git`

* Build and install the driver:

```sh
cd docker-machine-driver-packet
cd docker-machine-driver-metal
make
sudo make install
```

Now you will now be able to specify a `-driver` of `packet` to `docker-machine` commands.
Now you will now be able to specify a `-driver` of `metal` to `docker-machine` commands.

### Debugging

To monitor the Docker debugging details and the Packet API calls:
To monitor the Docker debugging details and the Equinix Metal API calls:

```sh
go build
PACKNGO_DEBUG=1 PATH=`pwd`:$PATH docker-machine \
--debug create -d packet \
--packet-api-key=$PACKET_TOKEN \
--packet-project-id=$PACKET_PROJECT \
--debug create -d metal \
--metal-api-key=$METAL_AUTH_TOKEN \
--metal-project-id=$METAL_PROJECT \
foo
```

Expand All @@ -106,4 +106,4 @@ The format for each release should be based on [Keep a Changelog](http://keepach

## Releases and Changes

See <https://github.com/packethost/docker-machine-driver-packet/releases> for the latest releases, install archives, and the project changelog.
See <https://github.com/equinix/docker-machine-driver-metal/releases> for the latest releases, install archives, and the project changelog.
2 changes: 1 addition & 1 deletion SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
If you require support, please email support@equinixmetal.com, visit the Equinix Metal IRC channel (#equinixmetal on Freenode), subscribe to the [Equinix Metal Community Slack](https://slack.equinixmetal.com/) channel or [post an issue](https://github.com/packethost/docker-machine-driver-packet/issues) within this repository.
If you require support, please email support@equinixmetal.com, visit the Equinix Metal IRC channel (#equinixmetal on Freenode), subscribe to the [Equinix Metal Community Slack](https://slack.equinixmetal.com/) channel or [post an issue](https://github.com/equinix/docker-machine-driver-metal/issues) within this repository.

[Contributions](CONTRIBUTING.md) are welcome to help extend this work!
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/packethost/docker-machine-driver-packet
module github.com/equinix/docker-machine-driver-metal

go 1.14

Expand All @@ -7,10 +7,10 @@ require (
github.com/docker/docker v0.0.0-20180805161158-f57f260b49b6 // indirect
github.com/docker/machine v0.16.2
github.com/google/go-cmp v0.3.0 // indirect
github.com/packethost/packngo v0.2.0
github.com/packethost/packngo v0.6.0
github.com/pkg/errors v0.8.1 // indirect
github.com/sirupsen/logrus v1.6.0 // indirect
github.com/stretchr/testify v1.3.0
github.com/stretchr/testify v1.5.1
golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37 // indirect
golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9 // indirect
gotest.tools v2.2.0+incompatible // indirect
Expand Down
19 changes: 11 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dnaeon/go-vcr v1.0.1 h1:r8L/HqC0Hje5AXMu1ooW8oyQyOFv4GxqpL0nRP7SLLY=
github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E=
github.com/docker/docker v0.0.0-20180805161158-f57f260b49b6 h1:6mGj2QkqSqEV8KFY6+yuB9cn+TFcPFf2oCn27DLTebU=
github.com/docker/docker v0.0.0-20180805161158-f57f260b49b6/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
github.com/docker/machine v0.16.2 h1:jyF9k3Zg+oIGxxSdYKPScyj3HqFZ6FjgA/3sblcASiU=
Expand All @@ -12,8 +14,8 @@ github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY=
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/konsorten/go-windows-terminal-sequences v1.0.3 h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8=
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/packethost/packngo v0.2.0 h1:mSlzOof8PsOWCy78sBMt/PwMJTEjjQ/rRvMixu4Nm6c=
github.com/packethost/packngo v0.2.0/go.mod h1:RQHg5xR1F614BwJyepfMqrKN+32IH0i7yX+ey43rEeQ=
github.com/packethost/packngo v0.6.0 h1:u2raV5kNHtYYoOwDhXy8daq1Q55HOUO+G4sPT86K9fk=
github.com/packethost/packngo v0.6.0/go.mod h1:YrtUNN9IRjjqN6zK+cy2IYoi3EjHfoWTWxJkI1I1Vk0=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand All @@ -22,21 +24,22 @@ github.com/sirupsen/logrus v1.6.0 h1:UBcNElsrwanuuMsnGSlYmtmgbb23qDR5dG+6X6Oo89I
github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67 h1:ng3VDlRp5/DHpSWl02R4rM9I+8M2rhmsuLwAMmkLQWE=
golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20200420201142-3c4aac89819a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37 h1:cg5LA/zNPRzIXIWSCxQW10Rvpy94aQh3LT/ShoCpkHw=
golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9 h1:YTzHMGlqJu67/uEo1lBv0n3wBXhXNeUbB1XfN2vmTm0=
golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package main

import (
"github.com/docker/machine/libmachine/drivers/plugin"
packet "github.com/packethost/docker-machine-driver-packet/pkg/drivers/packet"
metal "github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal"
)

func main() {
plugin.RegisterDriver(new(packet.Driver))
plugin.RegisterDriver(new(metal.Driver))
}
Loading

0 comments on commit e0a67cb

Please sign in to comment.