Skip to content

Commit

Permalink
remove more py, add ruby, docker stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
egeexyz committed Nov 11, 2024
1 parent 19e15a9 commit 3e02c98
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 142 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vendor
test
5 changes: 5 additions & 0 deletions .github/workflows/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1' # Replace with your desired Ruby version
131 changes: 1 addition & 130 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,130 +1 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so
#Nosuzypocalipse
.vscode
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
vendor
15 changes: 6 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
FROM python:3.9-buster
FROM ruby:3
RUN mkdir /app
COPY androgee /app/androgee
COPY poetry.lock /app
COPY pyproject.toml /app
RUN apt update && apt upgrade -y
RUN pip3 install poetry
WORKDIR /app
RUN poetry install
ENTRYPOINT [ "/usr/local/bin/poetry", "run", "start"]
RUN mkdir /data
COPY ./androgee /app/androgee
WORKDIR /app/androgee
# RUN bundle install
ENTRYPOINT [ "ruby", "lib/main.rb" ]
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# androgee

Requirements & venv are handled by Poetry - https://python-poetry.org/docs & https://python-poetry.org/docs/basic-usage.
You will need to use [type hints](https://www.python.org/dev/peps/pep-0484/) in your code for mypy's pre-commit hook. Before you commit use `poetry shell` so you have a environment with[`pre-commit`](https://pre-commit.com) installed.

To run:
* set the following environment variables:
- `DISCORD_PREFIX`
Expand Down
2 changes: 2 additions & 0 deletions androgee/.bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
BUNDLE_PATH: "vendor/bundle"
3 changes: 3 additions & 0 deletions androgee/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gem 'discordrb'
42 changes: 42 additions & 0 deletions androgee/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
GEM
remote: https://rubygems.org/
specs:
discordrb (3.5.0)
discordrb-webhooks (~> 3.5.0)
ffi (>= 1.9.24)
opus-ruby
rest-client (>= 2.0.0)
websocket-client-simple (>= 0.3.0)
discordrb-webhooks (3.5.0)
rest-client (>= 2.0.0)
domain_name (0.6.20240107)
event_emitter (0.2.6)
ffi (1.16.3)
http-accept (1.7.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2024.0507)
netrc (0.11.0)
opus-ruby (1.0.1)
ffi
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
websocket (1.2.10)
websocket-client-simple (0.8.0)
event_emitter
websocket

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
discordrb

BUNDLED WITH
2.5.9

0 comments on commit 3e02c98

Please sign in to comment.