Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Martin Dinov
POD
Commits
5a85b684
Unverified
Commit
5a85b684
authored
4 years ago
by
Vasili Novikov
Browse files
Options
Download
Email Patches
Plain Diff
Add nicer defaults
parent
b6fdb6dc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Cargo.toml
+1
-1
Cargo.toml
README.md
+5
-0
README.md
docker-compose.yml
+4
-1
docker-compose.yml
examples/generate_self-signed_certificate.sh
+15
-0
examples/generate_self-signed_certificate.sh
examples/run_development.sh
+12
-0
examples/run_development.sh
with
37 additions
and
2 deletions
+37
-2
Cargo.toml
+
1
-
1
View file @
5a85b684
...
...
@@ -8,7 +8,7 @@ authors = [
"Youp Mickers (copyright transferred to Polis) <polisyoup@gmail.com>"
,
]
edition
=
"2018"
publish
=
false
#
Since the project does not have a licence yet, p
revent accidental publishing
.
publish
=
false
#
P
revent accidental publishing
[dependencies]
...
...
This diff is collapsed.
Click to expand it.
README.md
+
5
-
0
View file @
5a85b684
...
...
@@ -30,6 +30,11 @@ After this, you can run Pod with:
cargo run
--release
```
Or with some development defaults:
```
./examples/run_development.sh
```
## Development
If you develop Pod, you might want to have faster build turn-around.
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
4
-
1
View file @
5a85b684
...
...
@@ -15,7 +15,10 @@ services:
-
/var/run/docker.sock:/var/run/docker.sock
environment
:
-
POD_IS_IN_DOCKER=true
# - POD_OWNER_HASHES=your-client's-key-hash
-
POD_OWNER_HASHES=ANY
#- POD_ADDRESS=
#- POD_HTTPS_CERTIFICATE=
#- POD_USE_INSECURE_NON_TLS=
volumes
:
db
:
...
...
This diff is collapsed.
Click to expand it.
examples/generate_self-signed_certificate.sh
0 → 100755
+
15
-
0
View file @
5a85b684
#!/bin/bash -euET
# You can use this to generate a self-signed certificate for Pod during development
if
!
test
-e
Cargo.toml
;
then
echo
"Please run this script from Pod-s main directory."
exit
1
fi
if
test
-f
data/pod.crt
&&
test
-f
data/pod.key
;
then
echo
"Skipping certificate generation as cert already exists"
exit
0
fi
exec
openssl req
-x509
-newkey
rsa:4096
-keyout
data/pod.key
-out
data/pod.crt
-days
365
-nodes
-subj
"/C=US/ST=Oregon/L=Portland/O=Company Name/OU=Org/CN=www.example.com"
This diff is collapsed.
Click to expand it.
examples/run_development.sh
0 → 100755
+
12
-
0
View file @
5a85b684
#!/bin/bash -euET
# This is an example of how you might run Pod during development.
# Do not ever attempt to ever use this script in production!
if
!
test
-e
Cargo.toml
;
then
echo
"Please run this script from Pod-s main directory."
exit
1
fi
examples/generate_self-signed_certificate.sh
POD_OWNER_HASHES
=
ANY
POD_HTTPS_CERTIFICATE
=
./data/pod
RUST_LOG
=
pod
=
debug,info
exec
cargo run
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets