* builds with echo now instead of gin * beginning of web UI * factor out util functions
This commit is contained in:
22
Dockerfile
22
Dockerfile
@@ -14,11 +14,33 @@ RUN tar cfz go-src.tgz src && du -sh *
|
||||
|
||||
FROM alpine
|
||||
|
||||
|
||||
54 viper.SetDefault("Debug", false)
|
||||
55 viper.SetDefault("TootsToDisk", false)
|
||||
56 viper.SetDefault("TootsToDB", true)
|
||||
57 viper.SetDefault("HostDiscoveryParallelism", 5)
|
||||
58 viper.SetDefault("FSStorageLocation", os.ExpandEnv("$HOME/Library/ApplicationSupport/feta/tootarchive.d"))
|
||||
59 viper.SetDefault("DBStorageLocation", os.ExpandEnv("$HOME/Library/ApplicationSupport/feta/feta.state.db"))
|
||||
60 viper.SetDefault("LogReportInterval", time.Second*10)
|
||||
|
||||
# here are the levers
|
||||
ENV FETA_HOSTDISCOVERYPARALLELISM 20
|
||||
ENV FETA_FSSTORAGELOCATION /state/tootstore
|
||||
ENV FETA_DBSTORAGELOCATION /state/feta.state.sqlite3
|
||||
ENV FETA_TOOTSTODISK false
|
||||
ENV FETA_TOOTSTODB true
|
||||
ENV FETA_DEBUG false
|
||||
|
||||
COPY --from=builder /go/src/git.eeqj.de/sneak/feta/feta /bin/feta
|
||||
RUN mkdir /app && mkdir /state
|
||||
COPY --from=builder /go/src/git.eeqj.de/sneak/feta/view /app/view
|
||||
|
||||
# put the source in there too for safekeeping
|
||||
COPY --from=builder /go/go-src.tgz /usr/local/src/go-src.tgz
|
||||
|
||||
VOLUME /state
|
||||
WORKDIR /app
|
||||
|
||||
CMD /bin/feta
|
||||
|
||||
# FIXME add testing
|
||||
|
||||
Reference in New Issue
Block a user