Basic working debian repository with reprepro and mdbook builder #1

Closed
mhfowler wants to merge 8 commits from first-branch into main
mhfowler commented 2020-11-09 21:08:12 +00:00 (Migrated from github.com)

still in progress, but making this into a PR, so that future PRs can be more feature-sized

this includes:

  • debian repository with reprepro
  • mdbook build, and serve by nginx

still todo:

  • figure out how to get aarch64 version using cargo-deb
  • setup nginx to serve debian repository
  • confirm microservice packages can be installed from pi
still in progress, but making this into a PR, so that future PRs can be more feature-sized this includes: - debian repository with reprepro - mdbook build, and serve by nginx still todo: - figure out how to get aarch64 version using cargo-deb - setup nginx to serve debian repository - confirm microservice packages can be installed from pi
mycognosist commented 2020-11-10 09:21:37 +00:00 (Migrated from github.com)

@mhfowler

"figure out how to get aarch64 version using cargo-deb"

I've added instructions for this to the dev docs:

Setup instructions are on the compilation page and package building instructions are on the packaging page.

@mhfowler "figure out how to get aarch64 version using cargo-deb" I've added instructions for this to the dev docs: Setup instructions are on the [compilation](http://docs.peachcloud.org/software/compilation.html) page and package building instructions are on the [packaging](http://docs.peachcloud.org/software/packaging.html) page.
mycognosist (Migrated from github.com) reviewed 2020-11-11 12:22:16 +00:00
mycognosist (Migrated from github.com) commented 2020-11-11 12:22:16 +00:00

This is looking great @mhfowler :)

Two small notes:

  1. the aarch64 linker variable needs to be defined before the cargo build command, otherwise it will fail (ie. the linker path is required by both commands: cargo build and cargo deb)

  2. cargo-deb should be cargo deb

This is looking great @mhfowler :) Two small notes: 1) the aarch64 linker variable needs to be defined before the `cargo build` command, otherwise it will fail (ie. the linker path is required by both commands: `cargo build` and `cargo deb`) 2) `cargo-deb` should be `cargo deb`
mycognosist (Migrated from github.com) reviewed 2020-11-11 12:25:00 +00:00
mycognosist (Migrated from github.com) commented 2020-11-11 12:25:00 +00:00

P.s. I actually just added .cargo/config to all the microservice repos. This removes the need for the linker variable to be exported, since it is defined in the config file and automatically detected by both cargo build and cargo deb.

I figure it's better to have these variables coded in-place, rather than requiring the extra export step each time.

P.s. I actually just added `.cargo/config` to all the microservice repos. This removes the need for the linker variable to be exported, since it is defined in the `config` file and automatically detected by both `cargo build` and `cargo deb`. I figure it's better to have these variables coded in-place, rather than requiring the extra export step each time.
mhfowler (Migrated from github.com) reviewed 2020-11-11 13:14:09 +00:00
mhfowler (Migrated from github.com) commented 2020-11-11 13:14:09 +00:00

nice I pulled the repos with the new .cargo/config
and it worked!

going to try seeing if I can get the package installed to the pi from the debain repo :)

nice I pulled the repos with the new .cargo/config and it worked! going to try seeing if I can get the package installed to the pi from the debain repo :)
mhfowler (Migrated from github.com) reviewed 2020-11-11 14:00:30 +00:00
mhfowler (Migrated from github.com) commented 2020-11-11 14:00:30 +00:00

successfully installed peach-oled to the pi via apt-get (so nice)

but peach-oled getting some errors when running.. will look into it a bit

Nov 11 13:53:06 peach systemd[1]: /lib/systemd/system/peach-oled.service:12: Address prefix is invalid, ignoring assignment: ~127.0.0.1
Nov 11 13:53:06 peach systemd[1]: /lib/systemd/system/peach-oled.service:18: Unknown lvalue 'ProtectDevices' in section 'Service', ignoring
Nov 11 13:53:06 peach systemd[1]: /lib/systemd/system/peach-oled.service:25: Failed to parse namespace type string, ignoring: CLONE_NEWUSER
successfully installed peach-oled to the pi via apt-get (so nice) but peach-oled getting some errors when running.. will look into it a bit ``` Nov 11 13:53:06 peach systemd[1]: /lib/systemd/system/peach-oled.service:12: Address prefix is invalid, ignoring assignment: ~127.0.0.1 Nov 11 13:53:06 peach systemd[1]: /lib/systemd/system/peach-oled.service:18: Unknown lvalue 'ProtectDevices' in section 'Service', ignoring Nov 11 13:53:06 peach systemd[1]: /lib/systemd/system/peach-oled.service:25: Failed to parse namespace type string, ignoring: CLONE_NEWUSER ```
mhfowler commented 2020-11-13 11:53:34 +00:00 (Migrated from github.com)

Unlearning cloud-based practices

Unlearning cloud-based practices

Pull request closed

Sign in to join this conversation.
No description provided.