Skip to content

Commit f008ffa

Browse files
committed
prepare for docker
1 parent 6d10aea commit f008ffa

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM cloudwarelabs/xfce4-min:latest
2+
MAINTAINER guodong <[email protected]>
3+
RUN apt-get update
4+
RUN apt-get install -y libwebp-dev libx11-dev libxdamage-dev libxtst-dev libpng12-0
5+
COPY build/pulsar /usr/local/bin/pulsar
6+
COPY libwebsockets.so.11 /usr/lib/
7+
COPY pulsar.desktop /root/.config/autostart/
8+
EXPOSE 5678

libwebsockets.so.11

205 KB
Binary file not shown.

main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
#include <X11/extensions/XTest.h>
2-
#include <X11/extensions/Xdamage.h>
31
#include <stdlib.h>
42
#include <stdio.h>
53
#include "pulsar.h"
64
#include "common.h"
75
#include "ws_server.h"
86

9-
10-
11-
damage_region_t region;
12-
137
int main(int argc, char* argv[])
148
{
159
pulsar_config_t *pulsar_config = (pulsar_config_t*)malloc(sizeof(pulsar_config_t));

pulsar.desktop

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
xfconf-query -c xsettings -p /Net/ThemeName -s "Adwaita"
3+
nohup Xorg :0 -noreset -logfile /tmp/0.log -config /etc/xorg.conf &
4+
sleep 1
5+
nohup xfce4-session &
6+
nohup pulsar &
7+
bash

0 commit comments

Comments
 (0)