mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	Merge branch 'main' into fix/dockerfile
This commit is contained in:
		
						commit
						a7bf97d035
					
				
							
								
								
									
										26
									
								
								.devcontainer/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								.devcontainer/Dockerfile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,26 @@
 | 
			
		||||
FROM rust:1.66
 | 
			
		||||
 | 
			
		||||
ARG USERNAME=lldapdev
 | 
			
		||||
ARG USER_UID=1000
 | 
			
		||||
ARG USER_GID=$USER_UID
 | 
			
		||||
 | 
			
		||||
# Create the user
 | 
			
		||||
RUN groupadd --gid $USER_GID $USERNAME \
 | 
			
		||||
    && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
 | 
			
		||||
    && apt-get update \
 | 
			
		||||
    && apt-get install -y sudo \
 | 
			
		||||
    && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
 | 
			
		||||
    && chmod 0440 /etc/sudoers.d/$USERNAME
 | 
			
		||||
 | 
			
		||||
RUN apt update && \
 | 
			
		||||
    curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
 | 
			
		||||
    apt update && \
 | 
			
		||||
    apt install -y --no-install-recommends nodejs libssl-dev musl-dev make perl curl 
 | 
			
		||||
 | 
			
		||||
RUN RUSTFLAGS=-Ctarget-feature=-crt-static cargo install wasm-pack \
 | 
			
		||||
    && npm install -g rollup \
 | 
			
		||||
    && rustup target add wasm32-unknown-unknown
 | 
			
		||||
 | 
			
		||||
USER $USERNAME
 | 
			
		||||
ENV CARGO_HOME=/home/$USERNAME/.cargo
 | 
			
		||||
ENV SHELL=/bin/bash
 | 
			
		||||
							
								
								
									
										5
									
								
								.devcontainer/devcontainer.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								.devcontainer/devcontainer.json
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
	"name": "LLDAP dev",
 | 
			
		||||
	"build": { "dockerfile": "Dockerfile" },
 | 
			
		||||
	"forwardPorts": [3890, 17170]
 | 
			
		||||
}
 | 
			
		||||
@ -28,6 +28,10 @@ package.json
 | 
			
		||||
# Pre-build binaries
 | 
			
		||||
*.tar.gz
 | 
			
		||||
 | 
			
		||||
# VSCode dirs
 | 
			
		||||
.vscode
 | 
			
		||||
.devcontainer
 | 
			
		||||
 | 
			
		||||
# Various config files that shouldn't be tracked
 | 
			
		||||
.env
 | 
			
		||||
lldap_config.toml
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -23,6 +23,7 @@ server_key
 | 
			
		||||
*.tar.gz
 | 
			
		||||
 | 
			
		||||
# Misc
 | 
			
		||||
.vscode
 | 
			
		||||
.env
 | 
			
		||||
recipe.json
 | 
			
		||||
lldap_config.toml
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user