fix builds and update everything
This commit is contained in:
parent
69678c417f
commit
08f3e43664
|
@ -6,7 +6,7 @@ ADD ./entrypoint.sh /
|
|||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
# Add Backplane agent
|
||||
ENV BACKPLANE_AGENT_VERSION 1.1.5
|
||||
ENV BACKPLANE_AGENT_VERSION 1.2.2
|
||||
RUN apk add -U --no-cache wget ca-certificates \
|
||||
&& wget https://bin.equinox.io/c/jWahGASjoRq/backplane-stable-linux-amd64.tgz \
|
||||
&& tar xf backplane-stable-linux-amd64.tgz \
|
||||
|
|
|
@ -6,7 +6,7 @@ RUN useradd --create-home minecraft
|
|||
|
||||
ADD ./eula.txt /minecraft/data/eula.txt
|
||||
ADD ./server.properties /minecraft/data/server.properties
|
||||
ADD https://s3.amazonaws.com/Minecraft.Download/versions/1.10.2/minecraft_server.1.10.2.jar /minecraft/minecraft_server.jar
|
||||
ADD https://s3.amazonaws.com/Minecraft.Download/versions/1.11/minecraft_server.1.11.jar /minecraft/minecraft_server.jar
|
||||
ADD runit/ /etc/service
|
||||
|
||||
RUN chmod a+r /minecraft/minecraft_server.jar
|
||||
|
|
|
@ -2,15 +2,15 @@ FROM xena/alpine
|
|||
|
||||
RUN apk add --no-cache ca-certificates
|
||||
|
||||
ENV GOLANG_VERSION 1.7.1
|
||||
ENV GOLANG_VERSION 1.7.4
|
||||
ENV GOLANG_SRC_URL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz
|
||||
ENV GOLANG_SRC_SHA256 2b843f133b81b7995f26d0cb64bbdbb9d0704b90c44df45f844d28881ad442d3
|
||||
ENV GOLANG_SRC_SHA256 4c189111e9ba651a2bb3ee868aa881fab36b2f2da3409e80885ca758a6b614cc
|
||||
|
||||
# https://golang.org/issue/14851
|
||||
COPY no-pic.patch /
|
||||
|
||||
RUN set -ex \
|
||||
&& apk add --no-cache --virtual .build-deps \
|
||||
&& apk add --no-cache --virtual go-build-deps \
|
||||
bash \
|
||||
gcc \
|
||||
musl-dev \
|
||||
|
@ -28,7 +28,7 @@ RUN set -ex \
|
|||
&& ./make.bash \
|
||||
\
|
||||
&& rm -rf /*.patch \
|
||||
&& apk del .build-deps
|
||||
&& apk del go-build-deps
|
||||
|
||||
ENV GOPATH /go
|
||||
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
FROM xena/alpine
|
||||
|
||||
ENV PATH=$PATH:/opt/nim/bin:/root/.nimble/bin
|
||||
ENV NIM_VERSION 0.15.2
|
||||
ENV NIM_VERSION 0.16.0
|
||||
ENV NIM_DOWNLOAD_URL http://nim-lang.org/download/nim-$NIM_VERSION.tar.xz
|
||||
|
||||
RUN apk update && \
|
||||
apk add libc-dev gcc curl libgcc git perl xz tar && \
|
||||
RUN apk add --no-cache --virtual nim-compiler-deps libc-dev gcc curl libgcc git perl xz tar && \
|
||||
apk add --no-cache libressl ca-certificates && \
|
||||
rm -rf /var/cache/apk/* && \
|
||||
mkdir -p /opt && cd /opt && \
|
||||
curl -LO $NIM_DOWNLOAD_URL && \
|
||||
|
@ -16,8 +16,6 @@ RUN apk update && \
|
|||
cd nimble && \
|
||||
nim -d:release c -r src/nimble -y install
|
||||
|
||||
ADD hack/nimble.nimble /root/.nimble/pkgs/nimble-0.7.10/nimble.nimble
|
||||
|
||||
LABEL language Nim
|
||||
LABEL version $NIM_VERSION
|
||||
LABEL distro Alpine Linux
|
||||
|
|
|
@ -0,0 +1,224 @@
|
|||
music_directory "~/music" # Can keep commented if XDG music dir.
|
||||
playlist_directory "~/.mpd/playlists"
|
||||
db_file "~/.mpd/database"
|
||||
log_file "~/.mpd/log"
|
||||
pid_file "~/.mpd/pid"
|
||||
state_file "~/.mpd/state"
|
||||
sticker_file "~/.mpd/sticker.sql"
|
||||
|
||||
user "xena"
|
||||
|
||||
bind_to_address "0.0.0.0"
|
||||
port "6600"
|
||||
|
||||
auto_update "yes"
|
||||
|
||||
#Zeroconf
|
||||
zeroconf_enabled "yes"
|
||||
zeroconf_name "Music Player"
|
||||
|
||||
input {
|
||||
plugin "curl"
|
||||
# proxy "proxy.isp.com:8080"
|
||||
# proxy_user "user"
|
||||
# proxy_password "password"
|
||||
}
|
||||
|
||||
#audio_output {
|
||||
# type "shout"
|
||||
# encoding "ogg" # optional
|
||||
# name "My Shout Stream"
|
||||
# host "localhost"
|
||||
# port "8000"
|
||||
# mount "/mpd.ogg"
|
||||
# password "hackme"
|
||||
# quality "5.0"
|
||||
# bitrate "128"
|
||||
# format "44100:16:1"
|
||||
# protocol "icecast2" # optional
|
||||
# user "source" # optional
|
||||
# description "My Stream Description" # optional
|
||||
# genre "jazz" # optional
|
||||
# public "no" # optional
|
||||
# timeout "2" # optional
|
||||
#}
|
||||
|
||||
#Pulseaudio
|
||||
audio_output {
|
||||
type "pulse"
|
||||
name "My Pulse Output"
|
||||
# server "remote_server" # optional
|
||||
# sink "remote_server_sink" # optional
|
||||
}
|
||||
#
|
||||
## Example "pipe" output:
|
||||
#
|
||||
#audio_output {
|
||||
# type "pipe"
|
||||
# name "my pipe"
|
||||
# command "aplay -f cd 2>/dev/null"
|
||||
## Or if you're want to use AudioCompress
|
||||
# command "AudioCompress -m | aplay -f cd 2>/dev/null"
|
||||
## Or to send raw PCM stream through PCM:
|
||||
# command "nc example.org 8765"
|
||||
# format "44100:16:2"
|
||||
#}
|
||||
#
|
||||
## An example of a null output (for no audio output):
|
||||
#
|
||||
#audio_output {
|
||||
# type "null"
|
||||
# name "My Null Output"
|
||||
#}
|
||||
#
|
||||
# This setting will change all decoded audio to be converted to the specified
|
||||
# format before being passed to the audio outputs. By default, this setting is
|
||||
# disabled.
|
||||
#
|
||||
|
||||
audio_output {
|
||||
type "httpd"
|
||||
name "My HTTP Stream"
|
||||
encoder "vorbis" # optional, vorbis or lame
|
||||
port "8000"
|
||||
# quality "5.0" # do not define if bitrate is defined
|
||||
bitrate "128" # do not define if quality is defined
|
||||
format "44100:16:2"
|
||||
}
|
||||
|
||||
#audio_output_format "44100:16:2"
|
||||
#
|
||||
# If MPD has been compiled with libsamplerate support, this setting specifies
|
||||
# the sample rate converter to use. Possible values can be found in the
|
||||
# mpd.conf man page or the libsamplerate documentation. By default, this is
|
||||
# setting is disabled.
|
||||
#
|
||||
#samplerate_converter "Fastest Sinc Interpolator"
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
||||
# Volume control mixer ########################################################
|
||||
#
|
||||
# These are the global volume control settings. By default, this setting will
|
||||
# be detected to the available audio output device, with preference going to
|
||||
# hardware mixing. Hardware and software mixers for individual audio_output
|
||||
# sections cannot yet be mixed.
|
||||
#
|
||||
# An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
|
||||
# setting is used other sound applications will be affected by the volume
|
||||
# being controlled by MPD.
|
||||
#
|
||||
#mixer_type "hardware"
|
||||
#
|
||||
# An example for controlling all mixers through software. This will control
|
||||
# all controls, even if the mixer is not supported by the device and will not
|
||||
# affect any other sound producing applications.
|
||||
#
|
||||
#mixer_type "software"
|
||||
#
|
||||
# This example will not allow MPD to touch the mixer at all and will disable
|
||||
# all volume controls.
|
||||
#
|
||||
#mixer_type "disabled"
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
||||
# Normalization automatic volume adjustments ##################################
|
||||
#
|
||||
# This setting specifies the type of ReplayGain to use. This setting can have
|
||||
# the argument "album" or "track". See <http://www.replaygain.org> for more
|
||||
# details. This setting is disabled by default.
|
||||
#
|
||||
#replaygain "album"
|
||||
#
|
||||
# This setting sets the pre-amp used for files that have ReplayGain tags. By
|
||||
# default this setting is disabled.
|
||||
#
|
||||
#replaygain_preamp "0"
|
||||
#
|
||||
# This setting enables on-the-fly normalization volume adjustment. This will
|
||||
# result in the volume of all playing audio to be adjusted so the output has
|
||||
# equal "loudness". This setting is disabled by default.
|
||||
#
|
||||
#volume_normalization "no"
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
||||
# MPD Internal Buffering ######################################################
|
||||
#
|
||||
# This setting adjusts the size of internal decoded audio buffering. Changing
|
||||
# this may have undesired effects. Don't change this if you don't know what you
|
||||
# are doing.
|
||||
#
|
||||
#audio_buffer_size "2048"
|
||||
#
|
||||
# This setting controls the percentage of the buffer which is filled before
|
||||
# beginning to play. Increasing this reduces the chance of audio file skipping,
|
||||
# at the cost of increased time prior to audio playback.
|
||||
#
|
||||
#buffer_before_play "10%"
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
||||
# Resource Limitations ########################################################
|
||||
#
|
||||
# These settings are various limitations to prevent MPD from using too many
|
||||
# resources. Generally, these settings should be minimized to prevent security
|
||||
# risks, depending on the operating resources.
|
||||
#
|
||||
#connection_timeout "60"
|
||||
#max_connections "10"
|
||||
#max_playlist_length "16384"
|
||||
#max_command_list_size "2048"
|
||||
#max_output_buffer_size "8192"
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
||||
# Character Encoding ##########################################################
|
||||
#
|
||||
# If file or directory names do not display correctly for your locale then you
|
||||
# may need to modify this setting. After modification of this setting mpd
|
||||
# --create-db must be run to change the database.
|
||||
#
|
||||
filesystem_charset "UTF-8"
|
||||
#
|
||||
# This setting controls the encoding that ID3v1 tags should be converted from.
|
||||
#
|
||||
id3v1_encoding "UTF-8"
|
||||
#
|
||||
###############################################################################
|
||||
# SIDPlay decoder #############################################################
|
||||
#
|
||||
# songlength_database:
|
||||
# Location of your songlengths file, as distributed with the HVSC.
|
||||
# The sidplay plugin checks this for matching MD5 fingerprints.
|
||||
# See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
|
||||
#
|
||||
# default_songlength:
|
||||
# This is the default playing time in seconds for songs not in the
|
||||
# songlength database, or in case you're not using a database.
|
||||
# A value of 0 means play indefinitely.
|
||||
#
|
||||
# filter:
|
||||
# Turns the SID filter emulation on or off.
|
||||
#
|
||||
#decoder {
|
||||
# plugin "sidplay"
|
||||
# songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
|
||||
# default_songlength "120"
|
||||
# filter "true"
|
||||
#}
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
audio_output {
|
||||
type "fifo"
|
||||
name "my_fifo"
|
||||
path "/tmp/mpd.fifo"
|
||||
format "44100:16:2"
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
FROM xena/alpine
|
||||
|
||||
RUN apk --no-cache add mpd && mkdir -p /.mpd/playlists
|
||||
|
||||
ADD mpd.conf /etc/mpd.conf
|
||||
ENV BACKPLANE_PROXY_URL http://127.0.0.1:7034
|
||||
|
||||
ADD run.sh /run.sh
|
||||
CMD /run.sh
|
|
@ -0,0 +1,216 @@
|
|||
music_directory "/music" # Can keep commented if XDG music dir.
|
||||
playlist_directory "/.mpd/playlists"
|
||||
db_file "/.mpd/database"
|
||||
log_file "/.mpd/log"
|
||||
pid_file "/.mpd/pid"
|
||||
state_file "/.mpd/state"
|
||||
sticker_file "/.mpd/sticker.sql"
|
||||
|
||||
user "root"
|
||||
|
||||
bind_to_address "0.0.0.0"
|
||||
port "6600"
|
||||
|
||||
auto_update "yes"
|
||||
|
||||
#Zeroconf
|
||||
zeroconf_enabled "yes"
|
||||
zeroconf_name "Music Player"
|
||||
|
||||
input {
|
||||
plugin "curl"
|
||||
# proxy "proxy.isp.com:8080"
|
||||
# proxy_user "user"
|
||||
# proxy_password "password"
|
||||
}
|
||||
|
||||
#audio_output {
|
||||
# type "shout"
|
||||
# encoding "ogg" # optional
|
||||
# name "My Shout Stream"
|
||||
# host "localhost"
|
||||
# port "8000"
|
||||
# mount "/mpd.ogg"
|
||||
# password "hackme"
|
||||
# quality "5.0"
|
||||
# bitrate "128"
|
||||
# format "44100:16:1"
|
||||
# protocol "icecast2" # optional
|
||||
# user "source" # optional
|
||||
# description "My Stream Description" # optional
|
||||
# genre "jazz" # optional
|
||||
# public "no" # optional
|
||||
# timeout "2" # optional
|
||||
#}
|
||||
|
||||
## Example "pipe" output:
|
||||
#
|
||||
#audio_output {
|
||||
# type "pipe"
|
||||
# name "my pipe"
|
||||
# command "aplay -f cd 2>/dev/null"
|
||||
## Or if you're want to use AudioCompress
|
||||
# command "AudioCompress -m | aplay -f cd 2>/dev/null"
|
||||
## Or to send raw PCM stream through PCM:
|
||||
# command "nc example.org 8765"
|
||||
# format "44100:16:2"
|
||||
#}
|
||||
#
|
||||
## An example of a null output (for no audio output):
|
||||
#
|
||||
#audio_output {
|
||||
# type "null"
|
||||
# name "My Null Output"
|
||||
#}
|
||||
#
|
||||
# This setting will change all decoded audio to be converted to the specified
|
||||
# format before being passed to the audio outputs. By default, this setting is
|
||||
# disabled.
|
||||
#
|
||||
|
||||
audio_output {
|
||||
type "httpd"
|
||||
name "My HTTP Stream"
|
||||
encoder "vorbis" # optional, vorbis or lame
|
||||
port "7034"
|
||||
# quality "5.0" # do not define if bitrate is defined
|
||||
bitrate "128" # do not define if quality is defined
|
||||
format "44100:16:2"
|
||||
}
|
||||
|
||||
#audio_output_format "44100:16:2"
|
||||
#
|
||||
# If MPD has been compiled with libsamplerate support, this setting specifies
|
||||
# the sample rate converter to use. Possible values can be found in the
|
||||
# mpd.conf man page or the libsamplerate documentation. By default, this is
|
||||
# setting is disabled.
|
||||
#
|
||||
#samplerate_converter "Fastest Sinc Interpolator"
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
||||
# Volume control mixer ########################################################
|
||||
#
|
||||
# These are the global volume control settings. By default, this setting will
|
||||
# be detected to the available audio output device, with preference going to
|
||||
# hardware mixing. Hardware and software mixers for individual audio_output
|
||||
# sections cannot yet be mixed.
|
||||
#
|
||||
# An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
|
||||
# setting is used other sound applications will be affected by the volume
|
||||
# being controlled by MPD.
|
||||
#
|
||||
#mixer_type "hardware"
|
||||
#
|
||||
# An example for controlling all mixers through software. This will control
|
||||
# all controls, even if the mixer is not supported by the device and will not
|
||||
# affect any other sound producing applications.
|
||||
#
|
||||
#mixer_type "software"
|
||||
#
|
||||
# This example will not allow MPD to touch the mixer at all and will disable
|
||||
# all volume controls.
|
||||
#
|
||||
#mixer_type "disabled"
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
||||
# Normalization automatic volume adjustments ##################################
|
||||
#
|
||||
# This setting specifies the type of ReplayGain to use. This setting can have
|
||||
# the argument "album" or "track". See <http://www.replaygain.org> for more
|
||||
# details. This setting is disabled by default.
|
||||
#
|
||||
#replaygain "album"
|
||||
#
|
||||
# This setting sets the pre-amp used for files that have ReplayGain tags. By
|
||||
# default this setting is disabled.
|
||||
#
|
||||
#replaygain_preamp "0"
|
||||
#
|
||||
# This setting enables on-the-fly normalization volume adjustment. This will
|
||||
# result in the volume of all playing audio to be adjusted so the output has
|
||||
# equal "loudness". This setting is disabled by default.
|
||||
#
|
||||
#volume_normalization "no"
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
||||
# MPD Internal Buffering ######################################################
|
||||
#
|
||||
# This setting adjusts the size of internal decoded audio buffering. Changing
|
||||
# this may have undesired effects. Don't change this if you don't know what you
|
||||
# are doing.
|
||||
#
|
||||
#audio_buffer_size "2048"
|
||||
#
|
||||
# This setting controls the percentage of the buffer which is filled before
|
||||
# beginning to play. Increasing this reduces the chance of audio file skipping,
|
||||
# at the cost of increased time prior to audio playback.
|
||||
#
|
||||
#buffer_before_play "10%"
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
||||
# Resource Limitations ########################################################
|
||||
#
|
||||
# These settings are various limitations to prevent MPD from using too many
|
||||
# resources. Generally, these settings should be minimized to prevent security
|
||||
# risks, depending on the operating resources.
|
||||
#
|
||||
#connection_timeout "60"
|
||||
#max_connections "10"
|
||||
#max_playlist_length "16384"
|
||||
#max_command_list_size "2048"
|
||||
#max_output_buffer_size "8192"
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
||||
# Character Encoding ##########################################################
|
||||
#
|
||||
# If file or directory names do not display correctly for your locale then you
|
||||
# may need to modify this setting. After modification of this setting mpd
|
||||
# --create-db must be run to change the database.
|
||||
#
|
||||
filesystem_charset "UTF-8"
|
||||
#
|
||||
# This setting controls the encoding that ID3v1 tags should be converted from.
|
||||
#
|
||||
id3v1_encoding "UTF-8"
|
||||
#
|
||||
###############################################################################
|
||||
# SIDPlay decoder #############################################################
|
||||
#
|
||||
# songlength_database:
|
||||
# Location of your songlengths file, as distributed with the HVSC.
|
||||
# The sidplay plugin checks this for matching MD5 fingerprints.
|
||||
# See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
|
||||
#
|
||||
# default_songlength:
|
||||
# This is the default playing time in seconds for songs not in the
|
||||
# songlength database, or in case you're not using a database.
|
||||
# A value of 0 means play indefinitely.
|
||||
#
|
||||
# filter:
|
||||
# Turns the SID filter emulation on or off.
|
||||
#
|
||||
#decoder {
|
||||
# plugin "sidplay"
|
||||
# songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
|
||||
# default_songlength "120"
|
||||
# filter "true"
|
||||
#}
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
audio_output {
|
||||
type "fifo"
|
||||
name "my_fifo"
|
||||
path "/tmp/mpd.fifo"
|
||||
format "44100:16:2"
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
mpd --no-daemon --stderr
|
|
@ -0,0 +1,18 @@
|
|||
FROM xena/alpine
|
||||
|
||||
ENV CC gcc
|
||||
|
||||
RUN apk add --no-cache alpine-sdk \
|
||||
&& mkdir -p /src \
|
||||
&& cd /src \
|
||||
&& git clone https://github.com/qpfiffer/Printer-Facts-API /src/app \
|
||||
&& git clone https://github.com/qpfiffer/38-Moths.git /src/38moths \
|
||||
&& (cd /src/38moths && make && make install) \
|
||||
&& cd /src/app \
|
||||
&& make \
|
||||
&& apk del alpine-sdk
|
||||
|
||||
ENV BACKPLANE_PROXY_URL http://127.0.0.1:8666
|
||||
|
||||
WORKDIR /src/app
|
||||
CMD "./printer-facts"
|
|
@ -0,0 +1,8 @@
|
|||
FROM golang:1.7.1
|
||||
|
||||
RUN go get github.com/tidwall/summitdb/cmd/summitdb-server
|
||||
|
||||
VOLUME /data
|
||||
EXPOSE 7481
|
||||
|
||||
CMD summitdb-server -dir /data -p 7481
|
Loading…
Reference in New Issue