Skip to content

Commit

Permalink
Merge pull request #13 from makeopensource/connect-rpc
Browse files Browse the repository at this point in the history
Connect rpc
  • Loading branch information
RA341 authored Oct 11, 2024
2 parents 9c49aa7 + 65cc0f4 commit 34a82b9
Show file tree
Hide file tree
Showing 89 changed files with 7,089 additions and 2,630 deletions.
5 changes: 4 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
hydra
hydra
bin
uploads
config.toml
37 changes: 34 additions & 3 deletions .example/ex-Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
FROM python:3.12-bookworm
FROM mcr.microsoft.com/dotnet/sdk:3.1
MAINTAINER Vinay Venkat (@cool00geek)

WORKDIR /home/autolab/
RUN apt-get update --fix-missing
RUN apt-get install -y gcc
RUN apt-get install -y make
RUN apt-get install -y build-essential

CMD ["/bin/sh -c"]
# Install autodriver
WORKDIR /home
RUN useradd autolab
RUN useradd autograde
RUN mkdir autolab autograde output
RUN chown autolab:autolab autolab
RUN chown autolab:autolab output
RUN chown autograde:autograde autograde
RUN apt-get install -y git
RUN git clone https://github.com/autolab/Tango.git
WORKDIR Tango/autodriver
RUN sed -i "s/sudo //g" Makefile
RUN make clean && make
RUN cp autodriver /usr/bin/autodriver
RUN chmod +s /usr/bin/autodriver

# Clean up
WORKDIR /home
RUN apt-get remove -y git
RUN apt-get -y autoremove
RUN rm -rf Tango/

# Set dotnet environment
ENV DOTNET_CLI_HOME /tmp

# Check installation
RUN ls -l /home
RUN which autodriver
71 changes: 64 additions & 7 deletions .example/hydra/package-lock.json

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

7 changes: 4 additions & 3 deletions .example/hydra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@
"main": "index.js",
"scripts": {
"cli": "ts-node src/index.ts",
"index": "npm src/index.ts",
"dk:bd": "docker build ../../ -f ./Dockerfile -t hydra",
"dk:rn": "docker run --rm --name hydra -it --network host hydra start",
"dk:pl": "docker run --rm --name hydra -it --network host ghcr.io/makeopensource/hydra:beta start"
"dk:pl": "docker run --rm --name hydra -it --network host ghcr.io/makeopensource/hydra:beta start",
"bd:rn" : "npm run dk:bd && npm run dk:rn"
},
"type": "commonjs",
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@connectrpc/connect-node": "^1.5.0",
"commander": "^12.1.0",
"inquirer": "^11.1.0",
"leviathan-client": "file:../../.spec/client"
"leviathan-generated-sdk": "file:../../.spec/client"
},
"devDependencies": {
"@types/node": "^22.7.2",
Expand Down
29 changes: 0 additions & 29 deletions .example/hydra/src/client.ts

This file was deleted.

Loading

0 comments on commit 34a82b9

Please sign in to comment.