Skip to content

Commit

Permalink
Merge pull request #6 from makeopensource/cli-docker-controls
Browse files Browse the repository at this point in the history
Setup for development
  • Loading branch information
RA341 authored Sep 29, 2024
2 parents bf0ec7f + 369b8f7 commit 6588092
Show file tree
Hide file tree
Showing 94 changed files with 3,333 additions and 9,489 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hydra
5 changes: 5 additions & 0 deletions .example/ex-Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3.12-bookworm

WORKDIR /home/autolab/

CMD ["/bin/sh -c"]
4 changes: 4 additions & 0 deletions .example/hydra/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
wwwroot/*.js
node_modules
typings
dist
268 changes: 268 additions & 0 deletions .example/hydra/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions hydra/package.json → .example/hydra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@
"description": "",
"main": "index.js",
"scripts": {
"cli": "ts-node src/index.ts"
"cli": "ts-node src/index.ts",
"index": "npm src/index.ts"
},
"type": "commonjs",
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"commander": "^12.1.0",
"leviathan-client": "file:../../spec/client"
},
"devDependencies": {
"@grpc/proto-loader": "^0.7.13",
"@types/node": "^22.7.2",
"grpc_tools_node_protoc_ts": "^5.3.3",
"grpc-tools": "^1.12.4",
"ts-node": "^10.9.2",
"typescript": "^5.6.2"
},
"dependencies": {
"@grpc/grpc-js": "^1.11.3",
"commander": "^12.1.0"
}
}
File renamed without changes.
File renamed without changes.
11 changes: 7 additions & 4 deletions hydra/src/index.ts → .example/hydra/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

import { Command } from 'commander';
import {client} from './client';
import {Command} from 'commander';
import {CoursesApi, DockerApi} from 'leviathan-client'

const program = new Command();

Expand All @@ -17,5 +17,8 @@ program

program.parse(process.argv);

console.log('starting grpc client connection')
client()
const courses = new DockerApi(undefined ,"http://localhost:9221");

courses.dockerContainerIdDelete(94882).then(value => {
console.log(value)
})
File renamed without changes.
3 changes: 3 additions & 0 deletions .example/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Example files

Contains example files that leviathan can be used to test
3 changes: 3 additions & 0 deletions .example/student/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
x = 10
while x < 10:
print(x, ' loop')
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
# Test binary, built with `go test -c`
*.test

package.json
package-lock.json

# Built Binaries
cmd/leviathan-agent/leviathan-agent
# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/
bin

.spec/server/*
6 changes: 6 additions & 0 deletions .idea/leviathan.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/swagger-settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6588092

Please sign in to comment.