-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* associate user info to directory (#301) * associate user info to directory (#301) * associate user info to directory (#301)
- Loading branch information
1 parent
bc2efbf
commit 7728c67
Showing
16 changed files
with
52 additions
and
58 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 |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
# Runs a set of commands using the runners shell | ||
- name: Maven Package | ||
run: | | ||
cd examples/word-count | ||
cd examples/[email protected]/word-count | ||
mvn clean package | ||
version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | ||
|
@@ -50,7 +50,7 @@ jobs: | |
|
||
- name: Docker Build & Push | ||
run: | | ||
cd examples/word-count | ||
cd examples/[email protected]/word-count | ||
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/word-count:$VERSION_WITH_TIMESTAMP --build-arg VERSION=$VERSION . | ||
docker push ${{ secrets.DOCKERHUB_USERNAME }}/word-count:$VERSION_WITH_TIMESTAMP | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ CREATE TABLE users ( | |
id SERIAL PRIMARY KEY, | ||
name VARCHAR(100) NOT NULL, | ||
password_hash VARCHAR(255) NOT NULL, | ||
email VARCHAR(100) NOT NULL | ||
email VARCHAR(100) NOT NULL UNIQUE | ||
); | ||
|
||
CREATE TABLE notebooks ( | ||
|
@@ -43,22 +43,28 @@ GRANT ALL PRIVILEGES ON TABLE spark_apps TO server; | |
|
||
|
||
-- Add some initial data | ||
-- 12345A | ||
INSERT INTO users (name, password_hash, email) VALUES ('user_0', 'scrypt:32768:8:1$1k6HpQA8N58PkDz7$db383b0d69d7a2f6893116b1955da70cb217173dc44ce169acf57cfe6a79f63118ad7515563a0b4f8f39dda49510d061acdba26be8f7c8786c161dd54d7a91c1', '[email protected]'); | ||
INSERT INTO users (name, password_hash, email) VALUES ('user_1', 'pbkdf2:sha256:150000$3Z6Z6Z6Z$e3', '[email protected]'); | ||
-- user_0 -12345A | ||
INSERT INTO users (name, password_hash, email) VALUES | ||
('user_0', 'scrypt:32768:8:1$1k6HpQA8N58PkDz7$db383b0d69d7a2f6893116b1955da70cb217173dc44ce169acf57cfe6a79f63118ad7515563a0b4f8f39dda49510d061acdba26be8f7c8786c161dd54d7a91c1', '[email protected]'), | ||
('user_1', 'pbkdf2:sha256:150000$3Z6Z6Z6Z$e3', '[email protected]'); | ||
|
||
INSERT INTO notebooks (name, path, user_id) VALUES ('demo.ipynb', 'work/demo.ipynb', 1); | ||
INSERT INTO notebooks (name, path, user_id) VALUES ('notebook.ipynb', 'work/notebook.ipynb', 1); | ||
INSERT INTO notebooks (name, path, user_id) VALUES ('quickstart.ipynb', 'work/quickstart.ipynb', 1); | ||
INSERT INTO notebooks (name, path, user_id) VALUES ('sg-resale-flat-prices.ipynb', 'work/sg-resale-flat-prices/sg-resale-flat-prices.ipynb', 1); | ||
INSERT INTO notebooks (name, path, user_id) VALUES | ||
('demo.ipynb', 'work/[email protected]/demo.ipynb', 1), | ||
('notebook.ipynb', 'work/[email protected]/notebook.ipynb', 1), | ||
('quickstart.ipynb', 'work/[email protected]/quickstart.ipynb', 1), | ||
('sg-resale-flat-prices.ipynb', 'work/[email protected]/sg-resale-flat-prices/sg-resale-flat-prices.ipynb', 1); | ||
|
||
INSERT INTO directories (name, path, user_id) VALUES ('work', '/work', 1); | ||
INSERT INTO directories (name, path, user_id) VALUES ('word-count', '/work/word-count', 1); | ||
INSERT INTO directories (name, path, user_id) VALUES ('sg-resale-flat-prices', '/work/sg-resale-flat-prices', 1); | ||
INSERT INTO directories (name, path, user_id) VALUES ('output', '/work/sg-resale-flat-prices/output', 1); | ||
INSERT INTO directories (name, path, user_id) VALUES | ||
-- ('work', '/work', 1), | ||
('[email protected]', '/work/[email protected]', 1), | ||
('word-count', '/work/[email protected]/word-count', 1), | ||
('sg-resale-flat-prices', '/work/[email protected]/sg-resale-flat-prices', 1), | ||
('output', '/work/[email protected]/sg-resale-flat-prices/output', 1), | ||
('[email protected]', '/work/[email protected]', 1); | ||
|
||
INSERT INTO spark_apps (spark_app_id, notebook_id) VALUES ('app-0000-0000', 1); | ||
INSERT INTO spark_apps (spark_app_id, notebook_id) VALUES ('app-0000-0001', 1); | ||
INSERT INTO spark_apps (spark_app_id, notebook_id) VALUES ('app-0000-0002', 1); | ||
INSERT INTO spark_apps (spark_app_id, notebook_id) VALUES ('app-0000-0003', 2); | ||
INSERT INTO spark_apps (spark_app_id, notebook_id) VALUES ('app-0000-0004', 2); | ||
INSERT INTO spark_apps (spark_app_id, notebook_id) VALUES | ||
('app-0000-0000', 1), | ||
('app-0000-0001', 1), | ||
('app-0000-0002', 1), | ||
('app-0000-0003', 2), | ||
('app-0000-0004', 2); |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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