mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 02:37:05 +00:00 
			
		
		
		
	 b8e18b0b5d
			
		
	
	
		b8e18b0b5d
		
			
		
	
	
	
	
		
			
			* Make docker files easier to use during development. During development it quite nice to have docker work with locally built code. This allows you to launch all services very quickly, with your changes, and optionally with debugging support. Changes made to docker files: - Removed all redundant docker-compose files. We now have 1 giant file, and smaller files to use as overrides. - Remove redundant README files that provided little information. - Rename docker/<dir> to match the service name in the docker-compose file for clarity. - Move environment variables to .env files. We only provide dev / the default environment for quickstart. - Add debug options to docker files using multistage build to build minimal images with the idea that built files will be mounted instead. - Add a docker/dev.sh script + compose file to easily use the dev override images (separate tag; images never published; uses debug docker files; mounts binaries to image). - Added docs/docker documentation for this.
		
			
				
	
	
		
			29 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			SQL
		
	
	
	
	
	
| -- create metadata aspect table
 | |
| create table metadata_aspect (
 | |
|   urn                           varchar(500) not null,
 | |
|   aspect                        varchar(200) not null,
 | |
|   version                       bigint not null,
 | |
|   metadata                      text not null,
 | |
|   createdon                     timestamp not null,
 | |
|   createdby                     varchar(255) not null,
 | |
|   createdfor                    varchar(255),
 | |
|   constraint pk_metadata_aspect primary key (urn,aspect,version)
 | |
| );
 | |
| 
 | |
| -- create default records for datahub user
 | |
| insert into metadata_aspect (urn, aspect, version, metadata, createdon, createdby) values(
 | |
|   'urn:li:corpuser:datahub',
 | |
|   'com.linkedin.identity.CorpUserInfo',
 | |
|   0,
 | |
|   '{"displayName":"Data Hub","active":true,"fullName":"Data Hub","email":"datahub@linkedin.com"}',
 | |
|   now(),
 | |
|   'urn:li:principal:datahub'
 | |
| ), (
 | |
|   'urn:li:corpuser:datahub',
 | |
|   'com.linkedin.identity.CorpUserEditableInfo',
 | |
|   0,
 | |
|   '{"skills":[],"teams":[],"pictureLink":"https://raw.githubusercontent.com/linkedin/datahub/master/datahub-web/packages/data-portal/public/assets/images/default_avatar.png"}',
 | |
|   now(),
 | |
|   'urn:li:principal:datahub'
 | |
| );
 |