Skip to content

Commit

Permalink
Update dockerfile with ca-certificates, otherwise SSL fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFriel committed Aug 29, 2017
1 parent f13c47f commit 06d4172
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ RUN cargo build --release --verbose
# # Production build:
FROM ubuntu

RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates libssl1.0.2

WORKDIR /var/lib/grapple
ENV ROCKET_ENV=prod
ENV ROCKET_PORT=8000
Expand Down
35 changes: 35 additions & 0 deletions tests/local_test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
extern crate grapple;


use grapple::config::*;
use grapple::git_repository::*;

pub struct TestValue;

impl GitRepository for TestValue {
fn repository_name(&self) -> &str {
"AaronFriel/grapple"
}

fn clone_uri(&self) -> &str {
// "https://github.com/aelve/guide.git"
"https://github.com/AaronFriel/grapple.git"
}
}

#[test]
fn test_grapple() {
let mapping = RepositoryMapping {
from: "AaronFriel/grapple".to_string(),
// push_uri: "ssh://git@gitlab.frielforreal.com:58432/aelve/guide.git".to_string(),
push_uri: "ssh://git@gitlab.frielforreal.com:58432/friel/grapple.git".to_string(),
deploy_public_key: "/zfsdev/volumes/devhome/.ssh/aelve_rsa.pub".to_string(),
deploy_private_key: "/zfsdev/volumes/devhome/.ssh/aelve_rsa".to_string(),
secret: "does not matter".to_string()
};

match grapple(&TestValue, &mapping) {
Err(e) => panic!("{}", e),
Ok(()) => (),
}
}

0 comments on commit 06d4172

Please sign in to comment.