Compare commits

...

7 Commits

Author SHA1 Message Date
787ff55444 Bump version number
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2019-05-28 22:26:55 +02:00
3901fe9e9c Cleanup
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-28 22:06:31 +02:00
e0b6ee69f1 Actually run as user
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-28 21:59:18 +02:00
75398a3613 Use adduser
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-28 21:56:44 +02:00
a944e8b149 Don't run as root in the container
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-28 21:46:47 +02:00
d9faf25648 Make script executable
[skip ci]
2019-05-19 16:05:58 +02:00
d2977eee32 Add script to list repositories
[ci skip]
2019-05-19 16:01:58 +02:00
5 changed files with 23 additions and 11 deletions

2
Cargo.lock generated
View File

@ -783,7 +783,7 @@ dependencies = [
[[package]]
name = "hoc"
version = "0.6.0"
version = "0.7.0"
dependencies = [
"actix-web 1.0.0-rc (registry+https://github.com/rust-lang/crates.io-index)",
"badge 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -1,6 +1,6 @@
[package]
name = "hoc"
version = "0.6.0"
version = "0.7.0"
authors = ["Valentin Brandl <vbrandl@riseup.net>"]
edition = "2018"
build = "build.rs"

View File

@ -29,10 +29,14 @@ FROM alpine:latest
RUN apk --no-cache add --update git
RUN adduser -D hoc
WORKDIR /home/hoc
USER hoc
# once we don't need a git binary anymore, this should be enough
# FROM scratch
# COPY --from=linuxkit/ca-certificates:v0.7 / /
COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/hoc /hoc
COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/hoc .
ENTRYPOINT ["/hoc"]
ENTRYPOINT ["/home/hoc/hoc"]

View File

@ -2,11 +2,10 @@ version: "2"
services:
hoc:
# build: .
# image: local/hoc:latest
image: registry.gitlab.com/vbrandl/hoc:latest
image: vbrandl/hits-of-code:latest
volumes:
- ./repos:/repos
- ./cache:/cache
ports:
- "127.0.0.1:8080:8080"
- ./repos:/home/hoc/repos
- ./cache:/home/hoc/cache
# ports:
# - "127.0.0.1:8080:8080"
restart: always

9
scripts/list.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env sh
set -e
DIR=${1:-repos}
find "$DIR" -mindepth 3 -maxdepth 3 -type d \
| sed -e "s/$DIR/https:\//g" \
| sort