-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stabilize pulse startup add beginning of bootserver in go
- Loading branch information
Showing
13 changed files
with
90 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
* | ||
!overlay | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
image-output | ||
image-export | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ubuntu:20.04 | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get upgrade -y | ||
RUN apt-get update | ||
#RUN yes | unminimize | ||
RUN apt-get install -yq \ | ||
build-essential \ | ||
git \ | ||
liblzma-dev | ||
RUN apt-get -qq clean | ||
RUN cd / && git clone https://github.com/ipxe/ipxe.git | ||
RUN cd ipxe/src && make \ | ||
bin-x86_64-pcbios/ipxe.pxe \ | ||
bin-x86_64-pcbios/undionly.kpxe \ | ||
bin-x86_64-efi/ipxe.efi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
all: | ||
mkdir -p rrx | ||
docker build --pull -t dbrrg . | ||
docker run --rm -v $$PWD/image-export:/image-export --name dbrrg-export dbrrg /bin/image-export.sh | ||
all: ipxe ubuntu | ||
|
||
ubuntu: | ||
docker build --pull -t dbrrg-ubuntu -f Dockerfile.ubuntu . | ||
docker run --rm -v $$PWD/scripts:/scripts -v $$PWD/image-export:/image-export dbrrg-ubuntu /scripts/image-export.sh | ||
|
||
ipxe: | ||
docker build --pull -t dbrrg-ipxe -f Dockerfile.ipxe . | ||
docker run --rm -v $$PWD/scripts:/scripts -v $$PWD/image-export:/image-export dbrrg-ipxe /scripts/make-ipxe.sh | ||
|
||
server: | ||
docker run --rm -v "$PWD":/app -w /app golang:1.17 go build -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package main | ||
|
||
import ( | ||
"net/http" | ||
"time" | ||
) | ||
|
||
type timeHandler struct { | ||
format string | ||
} | ||
|
||
func (th timeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { | ||
tm := time.Now().Format(th.format) | ||
w.Write([]byte("The time is: " + tm)) | ||
} | ||
|
||
func main() { | ||
muxer := http.NewServeMux() | ||
fileServer := http.FileServer(http.Dir("image-export")) | ||
th := timeHandler{format: time.RFC1123} | ||
muxer.Handle("/", fileServer) | ||
muxer.Handle("/ipxe.cfg", th) | ||
http.ListenAndServe(":8080", muxer) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module github.com/oposs/dbrrg | ||
|
||
go 1.17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/sh | ||
unset LD_LIBRARY_PATH | ||
/usr/bin/pulseaudio --kill | ||
exec /usr/bin/pulseaudio -n --use-pid-file=false -L module-udev-detect -L "$2" --log-level=info --fail=false | ||
/usr/bin/pulseaudio --cleanup-shm | ||
exec /usr/bin/pulseaudio -n -L module-udev-detect -L "$2" --log-level=info --fail=false --disallow-exit --exit-idle-time=-1 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
cd /ipxe/src | ||
|
||
cp bin-x86_64-pcbios/ipxe.pxe /image-export | ||
cp bin-x86_64-pcbios/undionly.kpxe /image-export | ||
cp bin-x86_64-efi/ipxe.efi /image-export | ||
|