Skip to content

Commit de21ddc

Browse files
committed
rename portainer to whale
1 parent 8e62729 commit de21ddc

File tree

138 files changed

+592
-723
lines changed

Some content is hidden

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

138 files changed

+592
-723
lines changed

.github/ISSUE_TEMPLATE.md

-44
This file was deleted.

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules
22
bower_components
33
dist
4-
portainer-checksum.txt
5-
api/cmd/portainer/portainer*
4+
whale-checksum.txt
5+
api/cmd/whale/whale*
66
.tmp

.godir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
portainer
1+
whale

CONTRIBUTING.md

-79
This file was deleted.

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
Whale: Copyright (c) 2017 SPARCS Whale Team
2+
3+
This software is provided 'as-is', without any express or implied
4+
warranty. In no event will the authors be held liable for any damages
5+
arising from the use of this software.
6+
7+
Permission is granted to anyone to use this software for any purpose,
8+
including commercial applications, and to alter it and redistribute it
9+
freely, subject to the following restrictions:
10+
11+
1. The origin of this software must not be misrepresented; you must not
12+
claim that you wrote the original software. If you use this software
13+
in a product, an acknowledgment in the product documentation would be
14+
appreciated but is not required.
15+
2. Altered source versions must be plainly marked as such, and must not be
16+
misrepresented as being the original software.
17+
3. This notice may not be removed or altered from any source distribution.
18+
19+
Whale contains code which was originally under this license:
20+
121
Portainer: Copyright (c) 2016 Portainer.io
222

323
This software is provided 'as-is', without any express or implied

README.md

+7-33
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,21 @@
1+
# SPARCS Whale
12

2-
<p align="center">
3-
<img title="portainer" src='http://portainer.io/images/logo_alt.png' />
4-
</p>
3+
**_SPARCS Whale_**, a simple docker management UI that built on **_Portainer__**.
54

6-
[![Microbadger](https://images.microbadger.com/badges/image/portainer/portainer.svg)](http://microbadger.com/images/portainer/portainer "Image size")
7-
[![Documentation Status](https://readthedocs.org/projects/portainer/badge/?version=stable)](http://portainer.readthedocs.io/en/latest/?badge=stable)
8-
[![Gitter](https://badges.gitter.im/portainer/Lobby.svg)](https://gitter.im/portainer/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
9-
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHXZJQNJQ36H6)
5+
**_SPARCS Whale_** is a lightweight management UI which allows you to **easily** manage your Docker host or Swarm cluster.
106

11-
**_Portainer_** is a lightweight management UI which allows you to **easily** manage your Docker host or Swarm cluster.
7+
**_SPARCS Whale_** is meant to be as **simple** to deploy as it is to use. It consists of a single container that can run on any Docker engine (Docker for Linux and Docker for Windows are supported).
128

13-
**_Portainer_** is meant to be as **simple** to deploy as it is to use. It consists of a single container that can run on any Docker engine (Docker for Linux and Docker for Windows are supported).
9+
**_SPARCS Whale_** allows you to manage your Docker containers, images, volumes, networks and more ! It is compatible with the *standalone Docker* engine and with *Docker Swarm*.
1410

15-
**_Portainer_** allows you to manage your Docker containers, images, volumes, networks and more ! It is compatible with the *standalone Docker* engine and with *Docker Swarm*.
16-
17-
## Demo
18-
19-
<img src="http://portainer.io/images/screenshots/portainer.gif" width="77%"/>
20-
21-
You can try out the public demo instance: http://demo.portainer.io/ (login with the username **admin** and the password **tryportainer**).
22-
23-
Please note that the public demo cluster is **reset every 15min**.
24-
25-
## Getting started
11+
## Portainer Documentation
2612

2713
* [Deploy Portainer](https://portainer.readthedocs.io/en/latest/deployment.html)
2814
* [Documentation](https://portainer.readthedocs.io)
2915

30-
## Getting help
31-
32-
* Issues: https://github.com/portainer/portainer/issues
33-
* FAQ: https://portainer.readthedocs.io/en/latest/faq.html
34-
* Gitter (chat): https://gitter.im/portainer/Lobby
35-
* Slack: http://portainer.io/slack/
36-
37-
## Reporting bugs and contributing
38-
39-
* Want to report a bug or request a feature? Please open [an issue](https://github.com/portainer/portainer/issues/new).
40-
* Want to help us build **_portainer_**? Follow our [contribution guidelines](https://portainer.readthedocs.io/en/latest/contribute.html) to build it locally and make a pull request. We need all the help we can get!
41-
4216
## Limitations
4317

44-
**_Portainer_** has full support for the following Docker versions:
18+
**_SPARCS Whale_** has full support for the following Docker versions:
4519

4620
* Docker 1.10 to Docker 17.03 (including `swarm-mode`)
4721
* Docker Swarm >= 1.2.3

api/bolt/data_migration.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package bolt
22

33
import (
44
"github.com/boltdb/bolt"
5-
"github.com/portainer/portainer"
5+
"github.com/sparcs-kaist/whale"
66
)
77

88
type Migrator struct {
@@ -27,15 +27,15 @@ func NewMigrator(store *Store, version int) *Migrator {
2727

2828
func (m *Migrator) Migrate() error {
2929

30-
// Portainer < 1.12
30+
// Whale < 1.12
3131
if m.CurrentDBVersion == 0 {
3232
err := m.updateAdminUser()
3333
if err != nil {
3434
return err
3535
}
3636
}
3737

38-
err := m.VersionService.StoreDBVersion(portainer.DBVersion)
38+
err := m.VersionService.StoreDBVersion(whale.DBVersion)
3939
if err != nil {
4040
return err
4141
}
@@ -45,10 +45,10 @@ func (m *Migrator) Migrate() error {
4545
func (m *Migrator) updateAdminUser() error {
4646
u, err := m.UserService.UserByUsername("admin")
4747
if err == nil {
48-
admin := &portainer.User{
48+
admin := &whale.User{
4949
Username: "admin",
5050
Password: u.Password,
51-
Role: portainer.AdministratorRole,
51+
Role: whale.AdministratorRole,
5252
}
5353
err = m.UserService.CreateUser(admin)
5454
if err != nil {
@@ -58,7 +58,7 @@ func (m *Migrator) updateAdminUser() error {
5858
if err != nil {
5959
return err
6060
}
61-
} else if err != nil && err != portainer.ErrUserNotFound {
61+
} else if err != nil && err != whale.ErrUserNotFound {
6262
return err
6363
}
6464
return nil

api/bolt/datastore.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66
"time"
77

88
"github.com/boltdb/bolt"
9-
"github.com/portainer/portainer"
9+
"github.com/sparcs-kaist/whale"
1010
)
1111

12-
// Store defines the implementation of portainer.DataStore using
12+
// Store defines the implementation of whale.DataStore using
1313
// BoltDB as the storage system.
1414
type Store struct {
1515
// Path where is stored the BoltDB database.
@@ -26,7 +26,7 @@ type Store struct {
2626
}
2727

2828
const (
29-
databaseFileName = "portainer.db"
29+
databaseFileName = "whale.db"
3030
versionBucketName = "version"
3131
userBucketName = "users"
3232
endpointBucketName = "endpoints"
@@ -109,22 +109,22 @@ func (store *Store) Close() error {
109109
// MigrateData automatically migrate the data based on the DBVersion.
110110
func (store *Store) MigrateData() error {
111111
if !store.checkForDataMigration {
112-
err := store.VersionService.StoreDBVersion(portainer.DBVersion)
112+
err := store.VersionService.StoreDBVersion(whale.DBVersion)
113113
if err != nil {
114114
return err
115115
}
116116
return nil
117117
}
118118

119119
version, err := store.VersionService.DBVersion()
120-
if err == portainer.ErrDBVersionNotFound {
120+
if err == whale.ErrDBVersionNotFound {
121121
version = 0
122122
} else if err != nil {
123123
return err
124124
}
125125

126-
if version < portainer.DBVersion {
127-
log.Printf("Migrating database from version %v to %v.\n", version, portainer.DBVersion)
126+
if version < whale.DBVersion {
127+
log.Printf("Migrating database from version %v to %v.\n", version, whale.DBVersion)
128128
migrator := NewMigrator(store, version)
129129
err = migrator.Migrate()
130130
if err != nil {

0 commit comments

Comments
 (0)