KitaitiMakoto
KitaitiMakoto commented on issue Plume/Plume#871 2021-01-10 09:03:46 +00:00
static build releases?

Yes. I'm looking forward to Rocket 0.5 release.

KitaitiMakoto commented on pull request Plume/Plume#873 2021-01-10 08:59:46 +00:00
Remove SQLite journal files

You're right!

KitaitiMakoto commented on issue Plume/Plume#871 2021-01-10 08:41:41 +00:00
static build releases?

After some errors, finally I finished successfully! The point is to use a Docker image of nightly Rust.

  1. Use nightly and openssl tag of rust-musl-builder image
  • I used nightly-2020-01-26-openssl11 tag just because it's near to our rust-toolechain nightly-2020-01-15. More later versions might work
  1. Run bash in container
  2. Remove rust-toolchain file
  3. Install gettext package
  • sudo apt update -y && sudo apt install -y gettext
  1. Build Plume
  • cargo build --release --no-default-features --features=postgres --target=x86_64-unknown-linux-musl

I got static build of Plume!

% ldd ./target/x86_64-unknown-linux-musl/release/plume
not a dynamic executable

I hope this may help you.

KitaitiMakoto deleted branch sqlite-journal from Plume/Plume 2021-01-10 06:31:37 +00:00
KitaitiMakoto merged pull request Plume/Plume#873 2021-01-10 06:31:27 +00:00
Remove SQLite journal files
KitaitiMakoto merged pull request Plume/Plume#873 2021-01-10 06:31:14 +00:00
Remove SQLite journal files
KitaitiMakoto pushed to main at Plume/Plume 2021-01-10 06:31:14 +00:00
5892c0b088 Merge pull request 'Remove SQLite journal files' (#873) from sqlite-journal into main
044a24eac8 Remove SQLite journal files
Compare 2 commits »
KitaitiMakoto created pull request Plume/Plume#873 2021-01-10 06:30:24 +00:00
Remove SQLite journal files
KitaitiMakoto pushed to sqlite-journal at Plume/Plume 2021-01-10 06:24:17 +00:00
044a24eac8 Remove SQLite journal files
KitaitiMakoto pushed to search-actor at Plume/Plume 2021-01-09 14:18:08 +00:00
e5e38d3fc3 Fix search::tests::search to use searcher directly instead of actor
7cc21577e5 Publish PostUpdated only when the post is published
2facddd767 Ignore search::tests::search
5d1c184be1 Ignore search::tests::search
Compare 4 commits »
KitaitiMakoto commented on issue Plume/Plume#871 2021-01-09 14:00:52 +00:00
static build releases?

hmm... I have no idea. Will try myself later.

KitaitiMakoto commented on issue Plume/Plume#871 2021-01-09 12:37:35 +00:00
static build releases?

Ah, more my mistake...

I use these scripts to build binaries:

This means:

  • I have not tried to build musl binaries
  • But, I use the scripts to build non-static (x86_64-unknown-linux-gnu) binaries
  • I mentioned them just for information because I thought they might help you think how to build musl binaries though they does not build musl binaries themselves
  • I din't mean those work for musl target

Step 2/6 : RUN rustup target install x86_64-unknown-linux-musl

You're right. I was wrong.

Step 6/6 : RUN cargo build --release --features="$FEATURES"

What's about to run?

cargo build --release --features="$FEATURES" --target x86_64-unknown-linux-musl
KitaitiMakoto commented on issue Plume/Plume#872 2021-01-09 12:19:37 +00:00
Include (request-target) in signed headers

Thank you for the information!

KitaitiMakoto commented on issue Plume/Plume#871 2021-01-09 11:46:19 +00:00
static build releases?

Sorry for my unclear instruction.

If you succeeded to build, it's ok. But if not, I did mean

  • keep rust-toolchain
  • move to you Plume directry
  • the, run rustup target install ...

rust-toolchain specifies a Rust version, not a build target. I guess installing musl target under Plume directory which has rust-tookchain downloads suitable Rust version for musl target. But I cannot try it because I'm not i front of computer now. Just guessing.

KitaitiMakoto commented on issue Plume/Plume#871 2021-01-09 11:30:03 +00:00
static build releases?

I mean doing

cd your/Plume
rustup target install x86_64-unknown-linux-musl
KitaitiMakoto commented on issue Plume/Plume#871 2021-01-09 10:49:12 +00:00
static build releases?

Sorry, not cargo install but rustup target install.

KitaitiMakoto commented on issue Plume/Plume#871 2021-01-09 10:47:42 +00:00
static build releases?

You might have to run cargo install under Plume directory. Plume project has rust-tookchain file which specifies Rust version.

KitaitiMakoto pushed to search-actor at Plume/Plume 2021-01-09 10:39:18 +00:00
5d1c184be1 Ignore search::tests::search
d36d32787c Update pot
728288e2a8 Fix tests to follow API changes
cfc88d483c Update pot
8c77fedd56 Fix tests to follow API changes
Compare 5 commits »
KitaitiMakoto commented on issue Plume/Plume#871 2021-01-09 10:38:46 +00:00
static build releases?

What about running blow?

% cargo build --target x86_64-unknown-linux-musl
KitaitiMakoto commented on issue Plume/Plume#871 2021-01-09 03:31:31 +00:00
static build releases?