Skip to content

API changes for new infra, other changes #210

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

Merged
merged 149 commits into from
Aug 5, 2016
Merged
Show file tree
Hide file tree
Changes from 140 commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
c8f5ae2
issue 32 fixed
cemersoz Jul 7, 2016
71179a9
removed swp
cemersoz Jul 7, 2016
65884ce
Merge branch 'master' of https://github.com/cemersoz/tuxlab-app
cemersoz Jul 7, 2016
9c68e12
fixed nconf issues
cemersoz Jul 7, 2016
4c41fd4
issue 82, 84 fixes
cemersoz Jul 7, 2016
6bac2e2
fixed #82
cemersoz Jul 7, 2016
c41344e
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
cemersoz Jul 7, 2016
0498eb0
isse #77
cemersoz Jul 8, 2016
097ff58
fixed tests
cemersoz Jul 8, 2016
30ee6c2
fixed files
cemersoz Jul 8, 2016
e156b44
fixed tests master
cemersoz Jul 8, 2016
c6525e0
merged with master'
cemersoz Jul 8, 2016
e9052be
fixed comment
cemersoz Jul 8, 2016
528fb7d
moved validator
cemersoz Jul 8, 2016
e9f46e2
removed duplicate file
cemersoz Jul 8, 2016
a511006
fixed tests, removed duplicate underscore, publish
cemersoz Jul 8, 2016
dbd424a
merged with master
cemersoz Jul 11, 2016
7cca5d3
changes
cemersoz Jul 14, 2016
7b1f48d
merged with master
cemersoz Jul 14, 2016
d6c8c4a
fixed methods.ts import
cemersoz Jul 14, 2016
3db2e47
fixed issues w methods
cemersoz Jul 14, 2016
719224f
fixes
cemersoz Jul 14, 2016
161838b
renamed, fixed api, meteor.methods explanation
cemersoz Jul 14, 2016
fed186e
minor fixes
cemersoz Jul 14, 2016
39e8e38
A
cemersoz Jul 15, 2016
f206ca2
half-merge
cemersoz Jul 15, 2016
cb8412b
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
cemersoz Jul 15, 2016
ddf5730
api changes
cemersoz Jul 15, 2016
ae5c30a
merged with master/requires-infra
cemersoz Jul 15, 2016
e07f9f6
merged with requires-infra
cemersoz Jul 15, 2016
7fd5d14
fixed api
cemersoz Jul 15, 2016
eb95338
merged
cemersoz Jul 15, 2016
0b5ef75
comments
cemersoz Jul 15, 2016
f0cf529
minor changes
cemersoz Jul 15, 2016
0f77939
merged with requires-infra
cemersoz Jul 15, 2016
dcf2317
minor fixes
cemersoz Jul 15, 2016
574d273
api changes (#126)
cemersoz Jul 15, 2016
7a86b9e
Merge branch 'requires-infra' of https://github.com/learnlinux/tuxlab…
cemersoz Jul 15, 2016
9c7ab13
method implementations
cemersoz Jul 15, 2016
2b653aa
before merge
cemersoz Jul 17, 2016
8921f1c
merged
cemersoz Jul 17, 2016
ee6d515
removed testing change
cemersoz Jul 17, 2016
97d1492
fixed typo
cemersoz Jul 17, 2016
461c6ea
fixed prepareLab
invalid-email-address Jul 18, 2016
d8df9f7
merged
invalid-email-address Jul 18, 2016
4e15bf9
removed test methods
cemersoz Jul 18, 2016
64c3179
fix prepareLab
invalid-email-address Jul 18, 2016
cc69eda
methods changes
cemersoz Jul 19, 2016
d36b825
merge and methods changes
cemersoz Jul 19, 2016
1f67feb
removed swap file
cemersoz Jul 19, 2016
481ac16
merged with master
cemersoz Jul 19, 2016
6aeecf5
fixed merge
cemersoz Jul 19, 2016
ada5cbd
fixes
invalid-email-address Jul 19, 2016
2483bba
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
invalid-email-address Jul 19, 2016
d445926
prepareLab WORKS
invalid-email-address Jul 20, 2016
ea90ac4
merged
invalid-email-address Jul 20, 2016
8b9cbbb
further fixes
invalid-email-address Jul 20, 2016
aac86b2
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
invalid-email-address Jul 20, 2016
6bb29d7
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
invalid-email-address Jul 20, 2016
c07c6a1
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
invalid-email-address Jul 20, 2016
7b54c86
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
invalid-email-address Jul 20, 2016
6f20115
merge
invalid-email-address Jul 20, 2016
3c90352
all works
invalid-email-address Jul 20, 2016
3763331
deleted debug line
invalid-email-address Jul 20, 2016
9cbe003
fixed minor excess code
invalid-email-address Jul 20, 2016
a4866a0
minor indentation fix
invalid-email-address Jul 20, 2016
c96e7a4
reference fixes
invalid-email-address Jul 21, 2016
0594b7d
fixes to nextTask
invalid-email-address Jul 21, 2016
03471ee
merged
invalid-email-address Jul 21, 2016
c8a20f3
merged with master
invalid-email-address Jul 21, 2016
ecf54d1
merged with master
invalid-email-address Jul 21, 2016
73aaefa
minor changes
invalid-email-address Jul 21, 2016
de776e0
fixed merge problems
invalid-email-address Jul 21, 2016
508d1a6
fixed md view and swithces
invalid-email-address Jul 22, 2016
a20c3fc
fixed error messages
cemersoz Jul 22, 2016
5486bf7
removed debug code
invalid-email-address Jul 22, 2016
3118931
merged with masteR
invalid-email-address Jul 22, 2016
764ff17
merged
cemersoz Jul 22, 2016
7c5daa5
removed swp
cemersoz Jul 22, 2016
d23f201
merged
cemersoz Jul 22, 2016
9452ce9
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
cemersoz Jul 22, 2016
d3435fa
Merge branch 'master' of https://github.com/cemersoz/tuxlab-app
invalid-email-address Jul 25, 2016
63e0e60
fixes
invalid-email-address Jul 25, 2016
39cafd2
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
invalid-email-address Jul 25, 2016
464b046
fixed typescript warning
invalid-email-address Jul 25, 2016
092013c
merge
invalid-email-address Jul 25, 2016
71ee567
added student object
cemersoz Jul 25, 2016
ebc319e
changed function calls
cemersoz Jul 25, 2016
e9b234a
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
cemersoz Jul 25, 2016
9da226a
deleted unnecessary files
cemersoz Jul 25, 2016
071fb74
updated api, added md feedback
cemersoz Jul 25, 2016
b24a184
fixed ts warn
cemersoz Jul 25, 2016
bf8f997
Merge branch 'master' of https://github.com/cemersoz/tuxlab-app
invalid-email-address Jul 25, 2016
e8633f0
fixed example_data and partially tests
cemersoz Jul 26, 2016
ce8d3e2
fixed tests, lab verifier
cemersoz Jul 26, 2016
92c6d0b
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
cemersoz Jul 26, 2016
e88da86
update validator, merge
cemersoz Jul 26, 2016
e1d82c2
fixed indentation
cemersoz Jul 26, 2016
17f9bc4
changes
cemersoz Jul 26, 2016
26898ab
it's pretty now
cemersoz Jul 26, 2016
67f3df2
what
invalid-email-address Jul 27, 2016
b6b8570
Merge branch 'master' of https://github.com/cemersoz/tuxlab-app
invalid-email-address Jul 27, 2016
4fc2d13
fixes to api changes
invalid-email-address Jul 27, 2016
26497f9
minpr changes
cemersoz Jul 27, 2016
e539500
fixed api, deleted swap
cemersoz Jul 27, 2016
82df60f
fixed etcd add
cemersoz Jul 27, 2016
fc081a0
fixed #187, #188
cemersoz Jul 27, 2016
8da0d11
merged
cemersoz Jul 27, 2016
70cf9b0
minor fixes
cemersoz Jul 27, 2016
04bcc74
fixed indentation
cemersoz Jul 27, 2016
76fc502
added equal sign
cemersoz Jul 27, 2016
83e99c5
updated example courses to match schema
cemersoz Jul 27, 2016
dac969a
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
cemersoz Jul 27, 2016
66f82cd
added md parser
cemersoz Jul 27, 2016
4e95548
removed debug code
cemersoz Jul 28, 2016
748db5a
fixed debug, import
cemersoz Jul 28, 2016
5882d68
changed dockerode settings
cemersoz Jul 28, 2016
97efd33
implemented to-from json
cemersoz Jul 28, 2016
bd148db
from-to json
cemersoz Jul 28, 2016
2b822e9
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
cemersoz Jul 28, 2016
ff23197
merge
cemersoz Jul 28, 2016
eff293d
fixed etcd err
cemersoz Jul 28, 2016
2b1359b
merge
cemersoz Jul 27, 2016
9f0116f
etcd cache changes
cemersoz Jul 29, 2016
9be366c
added env.util
cemersoz Jul 29, 2016
7fb59f9
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
cemersoz Jul 29, 2016
600164f
multiple os support
cemersoz Jul 29, 2016
fd53cb0
minor changes
cemersoz Jul 29, 2016
4032e78
added -system- variable
cemersoz Jul 29, 2016
24bcb43
merge
cemersoz Aug 1, 2016
533be63
added attempted field to course_records
cemersoz Aug 1, 2016
d94e53b
fixed cache, Collections issues
cemersoz Aug 1, 2016
00c9eaa
Merge branch 'master' of https://www.github.com/cemersoz/tuxlab-app
invalid-email-address Aug 1, 2016
f5c66a8
fixed minor env errors
invalid-email-address Aug 1, 2016
bcc186c
minor docker fixes, debug logs
invalid-email-address Aug 1, 2016
8d957da
minor change for timeout
cemersoz Aug 1, 2016
dbde92d
Merge branch 'master' of https://github.com/cemersoz/tuxlab-app
cemersoz Aug 1, 2016
14b0811
env refactoring with system
cemersoz Aug 4, 2016
ab5a60a
#108 (#212)
sandershihacker Aug 4, 2016
94316b6
#211, #199
cemersoz Aug 4, 2016
15aaa64
api refactoring
cemersoz Aug 4, 2016
68c4bf5
api refactoring and fixes
cemersoz Aug 5, 2016
8405427
some more refactoring. Removed debug code
cemersoz Aug 5, 2016
4b0487a
updated readme
cemersoz Aug 5, 2016
3142060
.
invalid-email-address Aug 5, 2016
8cc7a0b
merged
invalid-email-address Aug 5, 2016
faf79e6
changes
cemersoz Aug 5, 2016
6d7999b
Merge branch 'master' of https://github.com/cemersoz/tuxlab-app
invalid-email-address Aug 5, 2016
3cac8e6
wercks
invalid-email-address Aug 5, 2016
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
4 changes: 2 additions & 2 deletions client/imports/ui/pages/lab/labview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export default class LabView extends MeteorComponent {
slf.labProgress = "0 / "+slf.tasks.length;
slf.auth = {
username: Meteor.user().profile.nickname,
password: res.sshInfo.pass,
domain: "10.100.1.11"
password: res.system.password,
domain: res.system.node_ip
};
slf.taskUpdates = res.taskUpdates;

Expand Down
6 changes: 6 additions & 0 deletions collections/course_records.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ if(Meteor.isServer) {
data: {
type: Object,
optional: true
},
attempted: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already talked about this: I want an array of date objects indicating when the user attempted the task as opposed to just a number.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

type: Number
}
});
var labSchema = new SimpleSchema({
Expand All @@ -71,6 +74,9 @@ if(Meteor.isServer) {
type: Object,
optional: true
},
attempted: {
type: Number
},
tasks: {
type: [taskSchema]
}
Expand Down
17 changes: 16 additions & 1 deletion collections/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@ if (Meteor.isServer){
optional: true
}
})

var sessionSchema = new SimpleSchema({
labId:{
type: String
},
started:{
type: Number,
autoValue: function(){
return Date.now();
}
}
});

// Overall User Schema
var userSchema = new SimpleSchema({
Expand All @@ -92,6 +104,9 @@ if (Meteor.isServer){
announcements:{
type: [announcementSchema],
defaultValue: []
},
sessions:{
type: sessionSchema
}
});
(<any> Meteor.users).attachSchema(userSchema);
Expand Down Expand Up @@ -182,4 +197,4 @@ if(Meteor.isServer) {
}
if(Meteor.isClient) {
Meteor.subscribe('userRoles');
}
}
4 changes: 2 additions & 2 deletions private/settings.env.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"swarm_node_port" : "4000",
"etcd_node_ip" : "10.100.1.10",
"etcd_node_port" : "2379",
"etcd_user" : "meteor",
"etcd_pass" : "fff86d549374f03f4ba82bfe170b5018",
"etcd_user" : "root",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Fix indentation
  2. revert to meteor user

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aaron initializes this, no need for me to have any data, it'll be wrong anyway

"etcd_pass" : "d8a1975ae8a6c0377d95d84736e419bb",
"default_image" : "alpine",
"mongo_log_url" : "ds025792.mlab.com:25792/tuxlab",
"mongo_log_collection" : "logs"
Expand Down
52 changes: 52 additions & 0 deletions server/imports/api/env.os_families.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
//secure keys are not defined, but may be implemented

/** supported linux families for lab virtual machines
* although instructors can pass system objects like the ones below,
* no other os has been tested and may not function as expected
* if the os_family field is not provided, all systems default to alpine
*/
var os_families = {
//alpine defaults to the tuxlab_labvm image
alpine: {
username: "root",
password: "",
key: "",
os_family: "alpine",
image: "tuxlab_labvm",
ssh_port: 22
},

redhat: {
username: "",
password: "",
key: "",
os_family: "redhat",
image: ""
},

ubuntu: {
username: "",
password: "",
key: "",
os_family: "ubuntu",
image: "ubuntu"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just delete "ubuntu" from the images section- it wouldn't work because SSH isn't enabled

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kk

},

debian: {
username: "",
password: "",
key: "",
os_family: "debian",
image: ""
},

arch: {
username: "",
password: "",
key: "",
os_family: "arch",
image: ""
}
}

module.exports = os_families;
Loading