Skip to content

Commit

Permalink
fix: try to fix deps again
Browse files Browse the repository at this point in the history
  • Loading branch information
voznik committed May 20, 2024
1 parent 6fba1db commit d84eb01
Show file tree
Hide file tree
Showing 10 changed files with 177 additions and 186 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github: [voznik]
# description: "#StandWithUkraine - support with a donation"
custom: ['https://stand-with-ukraine.pp.ua']
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behaviour**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- Platform: [e.g. x86_64 GNU/Linux ] (run ```uname -om```)
- ralertsinua version [e.g. v0.5.1]
- The last commit id if you built project from sources (run : ```git rev-parse HEAD```)

**Additional context**
Add any other context about the problem here.
180 changes: 60 additions & 120 deletions Cargo.lock

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

4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ ralertsinua-models = { path = "ralertsinua-models", version = "0.5.1" }
ralertsinua-geo = { path = "ralertsinua-geo", version = "0.5.1", features = [
"tui",
] }
# [target.'cfg(not(target_env = "musl"))'.dependencies] # FIXME: how do we change dependencies based on target?
ralertsinua-http = { path = "ralertsinua-http", version = "0.5.1", default-features = false, features = [
ralertsinua-http = { path = "ralertsinua-http", version = "0.5.1", features = [
"cache",
"reqwest-native-tls",
] }

async-trait = "0.1.80"
Expand Down
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
FROM raonigabriel/web-terminal
RUN apk add --no-cache curl

ENV RELEASE_URL=https://github.com/voiceapiai/ralertsinua/releases/latest/download/ralertsinua-x86_64-unknown-linux-musl.tar.xz

WORKDIR /home/ralertsinua


# Install the latest musl version of ralertsinua
RUN curl -L --proto '=https' --tlsv1.2 -sSf "$RELEASE_URL" | tar -xvJf -
RUN find . -type f -name 'ralertsinua' -exec mv {} /usr/local/bin/ \;
ADD $RELEASE_URL ralertsinua.tar.xz
RUN tar -xvJf ralertsinua.tar.xz && \
find . -type f -name 'ralertsinua' -exec mv {} /usr/local/bin/ \; && \
rm ralertsinua.tar.xz

HEALTHCHECK CMD ["ralertsinua", "--help"]

# Comment this line if you don't need ttyd, and then just run ralertsina
CMD [ "ttyd", "-s", "3", "-t", "titleFixed=Rust alerts.in.ua TUI - ralertsinua", "-t", "rendererType=webgl", "-t", "disableLeaveAlert=true", "ralertsinua" ]
# CMD [ "ralertsinua" ]

# TODO: https://github.com/colinmurphy1/docker-ttyd/blob/main/entrypoint.sh
Loading

0 comments on commit d84eb01

Please sign in to comment.